26.2 Configuration
26.2.1 List of configuration commands
The following table shows the configuration commands used to configure IPv4 interfaces.
Table 26-2 List of configuration commands
Command name
ip address
ip route
26.2.2 Configures an interface.
Points to note
The example below shows how to set an IPv4 address for a VLAN. To do so, switch
to interface configuration mode.
Command examples
1.
(config)# interface vlan 100
Switches to interface configuration mode for VLAN ID 100.
2.
(config-if)# ip address 192.168.1.1 255.255.255.0
(config-if)# exit
Sets IPv4 address 192.168.1.1 and subnet mask 255.255.255.0 for VLAN ID 100.
26.2.3 Setting static routes
Points to note
The Switch does not support the setting of routing protocols. To enable
communication to subnets outside the VLANs, you must set static routes.
Command examples
1.
(config)# ip route 192.168.2.0 255.255.255.0 192.168.1.254
Specifies 192.168.1.254 as the forwarding route to the destination subnet
192.168.2.0/24.
Description
Specifies an IPv4 address for an interface.
Specifies IPv4 static routes.
26 IPv4 Interfaces
459