Configuration Guide Vol. 1


9.2.2 Setting IP addressing to the Switch

Points to note

To access the Switch from a remote operation terminal, you must first set an IP address in the interface that the terminal connects to.

Figure 9-2: Example of connection with a remote operation terminal

[Figure Data]

Command examples

  1. (config)# vlan 100

    (config-vlan)# exit

    Creates a port VLAN with VLAN ID 100, and switches to the VLAN configuration mode for VLAN 100.

  2. (config)# interface gigabitethernet 1/0/1

    (config-if)# switchport mode access

    (config-if)# switchport access vlan 100

    (config-if)# exit

    Switches to the Ethernet interface configuration mode for port 1/0/1. Sets port 1/0/1 for the VLAN 100 access port.

  3. (config)# interface vlan 100

    (config-if)# ip address 192.168.1.1 255.255.255.0

    (config-if)# exit

    (config)#

    Switches to interface configuration mode for VLAN ID 100. Sets IPv4 address 192.168.1.1 and subnet mask 255.255.255.0 for VLAN ID 100.