Set an interface to down-state

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
simon_lefisch
DD-WRT Novice


Joined: 28 Jun 2018
Posts: 27
Location: Over yonder

PostPosted: Thu May 30, 2019 15:10    Post subject: Set an interface to down-state Reply with quote
Hey everyone,

Is there any way to set the LAN interfaces to a down state (shutdown)? Looking to shutdown 3 of my 4 LAN ports so no one can just plug into one of them. I've search all over but have been able to find anything that works. Any help/info would be greatly appreciated. TIA

_________________
Router: R7800
Firmware: DD-WRT v3.0-r36100M kongat 06/10/18
Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6870
Location: Romerike, Norway

PostPosted: Thu May 30, 2019 15:19    Post subject: Reply with quote
Remove them from the VLAN and they will be dead.

swconfig dev switch0 vlan 1 set ports "1 6"

Put in Commands and save as startup.
simon_lefisch
DD-WRT Novice


Joined: 28 Jun 2018
Posts: 27
Location: Over yonder

PostPosted: Thu May 30, 2019 15:59    Post subject: Reply with quote
Per Yngve Berg wrote:
Remove them from the VLAN and they will be dead.

swconfig dev switch0 vlan 1 set ports "1 6"

Put in Commands and save as startup.


Awesome!! Thank you so much for this Very Happy Now I do remember reading something a while ago about how the port numbers are flipped compared to how they are listed in CLI. Is that correct?

_________________
Router: R7800
Firmware: DD-WRT v3.0-r36100M kongat 06/10/18
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6870
Location: Romerike, Norway

PostPosted: Thu May 30, 2019 17:13    Post subject: Reply with quote
Yes, port 4 is closest to the WAN.
simon_lefisch
DD-WRT Novice


Joined: 28 Jun 2018
Posts: 27
Location: Over yonder

PostPosted: Tue Jun 04, 2019 15:12    Post subject: Reply with quote
Per Yngve Berg wrote:
Yes, port 4 is closest to the WAN.


Sorry for the late response. Thanks again for the info. Wasnt really sure what those commands did but was able to look them up and found exactly what I needed. Thanks again for your help and the info you have provided, it is much appreciated Very Happy

_________________
Router: R7800
Firmware: DD-WRT v3.0-r36100M kongat 06/10/18
Rohan579
DD-WRT Novice


Joined: 08 Jun 2019
Posts: 1

PostPosted: Sat Jun 08, 2019 6:02    Post subject: Re:Atheros WiSOC based Hardware Reply with quote
Great Information!!!

IELTS Classes in Pune
simon_lefisch
DD-WRT Novice


Joined: 28 Jun 2018
Posts: 27
Location: Over yonder

PostPosted: Sun Jun 09, 2019 18:27    Post subject: Reply with quote
Per Yngve Berg wrote:
Remove them from the VLAN and they will be dead.

swconfig dev switch0 vlan 1 set ports "1 6"

Put in Commands and save as startup.


So I tried this and had no effect. Ports were still up and was able to get an IP and connect to the internet. Not sure what I did wrong. I essentially want LAN ports 2-4 to be dead to where if someone connects to them using an ethernet cable, they get no IP address. Is there something I'm doing wrong?

_________________
Router: R7800
Firmware: DD-WRT v3.0-r36100M kongat 06/10/18
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6870
Location: Romerike, Norway

PostPosted: Sun Jun 09, 2019 18:44    Post subject: Reply with quote
It helps to apply the changes.

swconfig dev switch0 set apply
simon_lefisch
DD-WRT Novice


Joined: 28 Jun 2018
Posts: 27
Location: Over yonder

PostPosted: Sun Jun 09, 2019 19:25    Post subject: Reply with quote
Per Yngve Berg wrote:
It helps to apply the changes.

swconfig dev switch0 set apply


Yea I did that

_________________
Router: R7800
Firmware: DD-WRT v3.0-r36100M kongat 06/10/18
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum