Enabling Remote Access on a CLIBased Switch

An IP address can also be configured for in-band management on a switch with a CLI-based user interface by entering the following commands in privileged mode:

Switch(enable) set interface sc0 ip-address netmask broadcast-address Switch(enable) set interface sc0 vlan Switch(enable) set ip route default gateway

The first command line defines the IP address and subnet mask for the switch management interface, sc0. The broadcast address must also be given to match the subnet and subnet mask values. In addition, the management interface is assigned to a specific VLAN with the second command line. If this command is not given, the management interface defaults to VLAN1. The third command line assigns a default gateway that will receive any packets destined off the local management interface subnet.

To view the current IP settings, use the show interface command.

Was this article helpful?

0 0

Post a comment