Getting Started
Page 25
2.5.4
Setting the VLAN 1 IP Address
Assign an IP address to the device on VLAN 1, which is normally sufficient for small local
area networks that use Dynamic Host Configuration Protocol, DHCP, or static IP address
allocation.
Note: IP addresses can only be assigned to VLAN interfaces.
»
Enter configuration mode:
»
Enter and execute configuration commands:
-
The prompt will change as the
interface vlan 1
command enters a configura-
tion sub-mode that allows, e.g., the configuration of the IP address.
»
Exit configuration mode:
Checking the IP address
The command
show ip interface brief
displays all configured and active IP interfaces. The
status should be UP, unless there is no link on any port.
Checking the IP address
If DHCP negotiation has failed, the switch will assign fallback IP 172.16.1.2.
Verifying the Connectivity
Verifying connectivity via ping command
If the ping is successful, you can log in to the network via telnet/ssh or web to the
address on VLAN interface 1, 172.16.1.17 (or 172.16.1.2).
my-device#
configure terminal
my-device(config)#
interface vlan 1
my-device(config-if-vlan)#
ip address dhcp fallback 172.16.1.2
255.255.0.0
my-device(config-if-vlan)#
exit
my-device#
show ip interface brief
Vlan Address Method Status
---- -------------------- -------- ------
1 172.16.1.17/16 DHCP UP
my-device#
my-device#
ping ip 172.16.1.1
PING server 172.16.1.1, 56 bytes of data.
64 bytes from 172.16.1.1: icmp_seq=0, time=0ms
64 bytes from 172.16.1.1: icmp_seq=1, time=0ms
64 bytes from 172.16.1.1: icmp_seq=2, time=0ms
64 bytes from 172.16.1.1: icmp_seq=3, time=0ms
64 bytes from 172.16.1.1: icmp_seq=4, time=0ms
Sent 5 packets, received 5 OK, 0 bad