Table 6-6 Switch IPv4 Configuration
Command
Mode/Purpose/Description
interface vlan number
Changes the context to VLAN interface mode. For VLAN 1,
allows the configuration of the switch’s IP address.
ip address ip-address
subnet-mask
VLAN interface mode. Statically configures the switch’s IP
address and mask.
ip address dhcp
VLAN interface mode. Configures the switch as a DHCP client
to discover its IPv4 address, mask, and default gateway.
ip default-gateway
address
Global command. Configures the switch’s default gateway IPv4
address. Not required if the switch uses DHCP.
ip name-server server-ip-1
server-ip-2 …
Global command. Configures the IPv4 addresses of DNS servers,
so any commands when logged in to the switch will use the DNS
for name resolution.
Do'stlaringiz bilan baham: |