三层交换机命令

(1) 配置三层交换机启动路由功能: ip routing
 
(2) 配置 VLAN IP 地址:       interface vlan vlan-id
                                          Ip address ip-address subnet-mask
                                          No shutdown
 
(3) 配置接口为三层模式:    no switchport
 
(4) 配置 DHCP 中继转发:    int vlan vlan-id
                                          Ip helper-address Dhcpserver-address
 
(5) 配置静态路由:              ip route targetnet-address netmask nexthop-address
 
(6) 配置 RIP 协议:              router rip
                                          Network netaddress
 
(7) 查看 FIB 表:                  show ip cef
 
(8) 查看邻接关系表:           show adjacency detail
 
(9) 查看路由表:                  show ip route

你可能感兴趣的:(职场,休闲,三层,交换)