82
CHAPTER 3
INTRODUCTION TO CLI
dhcp [ interface vlan <v_vlan_id> ]: Configure DNS IP address via specific VLAN DHCP server.
Negation:
(config)# no ip name-server
Show:
> show ip name-server
# show ip name-server
3.9.21.31 (config)# ip route
Syntax:
(config)# ip route <v_ipv4_addr> <v_ipv4_netmask> <v_ipv4_gw>
Explanation:
Configure a static IP route.
Parameters:
<v_ipv4_addr>: Specify IPv4 address. The IP route is the destination IP network or host address of this route.
Valid format is dotted decimal notation.
<v_ipv4_netmask>: The route mask is a destination IP network or host mask, in number of bits (prefix length). It
defines how much of a network address that must match, in order to qualify for this route. Only a default route
will have a mask length of 0 (as it will match anything).
<v_ipv4_gw>: This is the IP address of the gateway. Valid format is dotted decimal notation. Gateway and
Network must be of the same type.
Example:
Add a new ip route with the following settings.
Negation:
(config)# no ip route <v_ipv4_addr> <v_ipv4_netmask> <v_ipv4_gw>
Show: >
show ip route
# show ip route
3.9.21.32 (config)# ip routing
Syntax:
(config)# ip routing
Explanation:
Enable IPv4 and IPv6 routing.
Example:
Enable IPv4 and IPv6 routing.
Negation:
(config)# no ip routing
Show:
> show ip route
> show ipv6 route [interface vlan <vlan_list>]
# show ip route
# config t
(config)# ip routing
# config t
(config)# ip route 192.168.1.240 255.255.255.0 192.168.1.254
Содержание MSW-4424C Series
Страница 1: ...1 MSW 4424C MSW 4424CS L2 Gigabit Carrier Ethernet Switch ...
Страница 382: ......