By default, the IP address of VLAN 1 is set to 192.168.100.1. VLAN 1’s IP address can be assigned via a DHCP server or statically by the administrator.
Static Configuration - IPv4
The below CLI snippet statically sets the IP address of VLAN 1 to 192.168.200.1/24 and copies the running-config to the startup-config.
FLEX24-10G# configure terminal
FLEX24-10G(config)# interface vlan 1
FLEX24-10G(config-if-vlan)# ip address ? IP address dhcp Enable DHCP
FLEX24-10G(config-if-vlan)# ip address 192.168.200.1 255.255.255.0
FLEX24-10G(config-if-vlan)# end
FLEX24-10G# copy running-config startup-config
DHCP Configuration - IPv4
The CLI snippet configures VLAN 1 to obtain an IP address from a DHCP server. The switch will send out a DHCP request to obtain a DHCP lease from a server on the network. An optional fallback IP address can be set if the switch is unable to obtain an IP address from a DHCP server.
FLEX24-10G# configure terminal
FLEX24-10G(config)# interface vlan 1
FLEX24-10G(config-if-vlan)# ip address ? IP address dhcp Enable DHCP
FLEX24-10G(config-if-vlan)# ip address dhcp ? client-id DHCP client identifier fallback DHCP fallback settings hostname DHCP host name
FLEX24-10G(config-if-vlan)# ip address dhcp fallback ? DHCP fallback address FLEX24-10G(config-if-vlan)# $ dhcp fallback 192.168.200.1 255.255.255.0
FLEX24-10G(config-if-vlan)# end
FLEX24-10G# copy running-config startup-config Building configuration... % Saving 1967 bytes to flash:startup-config
FLEX24-10G#
NOTE: IPV6 can also be assigned. Refer to Admin Guide for more details.
Refer to the Admin Guide for all the advanced settings available in the switch. You’ll find additional resources like the Datasheet, Admin Guide, A&E spec sheet, etc on the product page here.
For more assistance,
|
Comments
0 comments
Please sign in to leave a comment.