R1: en conf t ip classless (子网支持) ip subnet-zero (零子网) no ip domain-lookup hostname R1 int f0/1 ip add 192.168.1.1 255.255.255.0 no sh in...
OSPF基本配置
R1: en conf t int f0/0 ip add 10.1.1.1 255.255.255.0 no sh int f0/1 ip add 192.168.1.1 255.255.255.0 no sh end show ip int brief conf t router ospf 100 ...
BGP配置
R1: en conf t int f0/0 ip add 10.1.1.1 255.255.255.0 no shutdown int f0/1 ip add 192.168.1.1 255.255.255.0 no shutdown int lo0 ip add 192.168.0.1 255.255.255.0 ...
PAT转换
R1: enable conf t interface f0/0 ip add 200.1.1.1 255.255.255.0 no shutdown int lo 1 ip add 100.1.1.1 255.255.255.0 end show ip int brief R2: en conf ...
策略路由配置
1、R1配置 en config t int f0/1 ip add 192.168.1.1 255.255.255.0 no sh exit ip route 172.17.1.0 255.255.255.0 192.168.1.2 ip route 172.17.2.0 255.255.255.0 192.168.1.2 e...
防止非法DHCP服务器接入
1、DHCP en conf t service dhcp ip dhcp pool dhcptest network 192.168.1.0 /24 default-router 192.168.1.1 dns-server 202.106.0.20 lease 7 exit int f1/0 no switchp...
DHCP中继配置
1、SW1配置 en vlan data vtp domain 2014 vlan 2 vlan 3 vlan 10 exit config t ip routing int vlan 2 ip add 192.168.2.1 255.255.255.0 ip helper 192.168.10.254 ...
DHCP配置
1、SW1配置 en vlan data vtp domain 2014 vlan 2 vlan 3 exit config t ip routing service dhcp ip dhcp pool vlan2 network 192.168.2.0 255.255.255.0 default-route ...
VRRP配置
1、SW1配置 en vlan data vtp domain 2014 vtp server vlan 2 vlan 3 exit conf t int f1/1 switch mode trunk int f1/15 switch mode trunk int f1/0...
HSRP配置
1、SW1配置 en vlan data vtp domain 2014 //设置vtp域为2014 vtp server //vtp模式为服务器模式 vlan 2 vlan 3 exit conf t ip routing int f1/1 switch mo...