I came across this command at a Layer 2 Switch, and I don't know what it does.
no switchport
Ip Addr 10.2.3.4 255.255.0.0
Network Engineering Stack Exchange is a question and answer site for network engineers. It only takes a minute to sign up.
Sign up to join this communityI came across this command at a Layer 2 Switch, and I don't know what it does.
no switchport
Ip Addr 10.2.3.4 255.255.0.0
This would have to be commands provided from an interface on a L3 capable switch.
The no switchport
command puts the interface in L3 mode (known as "routed port") and makes it operate more like a router interface rather than a switch port. The ip address
command assigns an IP address and network mask to the interface. Routed ports can be configured with a Layer 3 routing protocol.
However, restrictions apply: