2.1 Basic Device Configuration

Switch SVI Configuration

A switch is configured to have all its management controlled through VLAN 1 by default and also all of the available ports are assigned to VLAN 1 by default.

For security reasons, it is recommended to use a VLAN other than VLAN 1 for the management VLAN, such as VLAN 99.

Configuring the Management Interface

Enter Global Configuration Mode

s1> enable
S1# configure terminal

Enter interface configuration mode for the SVI

S1(config)# interface [interface-id]

Configure the management interface IPv4 address

S1(config-if)# ip address [ip-address] [subnet-mask]

Configure the management interface IPv6 address (if any)

S1(config-if)# ipv6 address [ipv6-address/prefix]

Enable the interface

S1(config-if)# no shutdown

Exit Interface Configuration Mode

S1(config-if)# exit

Configuring the Default Gateway

S1(config)# ip default-gateway 192.168.1.1

[NOTE] The switch needs to have a default gateway configured if it will be managed remotely from other networks that are not directly connected.

[NOTE] Since an IPv6 enabled router will automatically receive its default gateway information from a Router Advertisement (RA) message, there is no need to configure an IPv6 Default Gateway.

Save the configuration

S1(config)# exit
S1# copy running-config startup-config
Switch SVI Complete Configuration Example
S1> enable
S1# configure terminal
S1(config)# interface vlan 99
S1(config-if)# ip address 192.168.99.2 255.255.255.0
S1(config-if)# ipv6 address 2001:db8:cafe:99::1/64
S1(config-if)# no shutdown
S1(config-if)# exit
S1(config)# ip default-gateway 192.168.99.1
S1(config)# exit
S1# copy running-config startup-confi