标签:add cisc ast exclude 重载 sid 三层交换机 shutdown ip add
单臂路由设置
Switch(config-if)#no switchport
Switch(config)#ip routing
Switch(config)#interface FastEthernet0/1
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#exit
Switch(config)#interface vlan 2
Switch(config-if)#ip address 192.168.2.1 255.255.255.0
Switch(config-if)#exit
Switch(config)#interface vlan 3
三层交换机设置
s3(config)#ip routing开启路由功能
s3(config)#int fa0/5
s3(config-if)#no switchport该端口启用三层路由功能
s3(config-if)#ip address 192.168.5.1 255.255.255.0配置IP地址
s3(config-if)#no shutdown开启端口
S2(config-if)switchport trunk encapsulation dot1q
S2(config)#interface vlan 10????????????? //进入vlan 10接口配置模式
S2(config-if)#ip address 192.168.1.254 255.255.255.0
单3层交换机配置 不划分vlan
Switch(config)#ip routing
Switch(config)#interface FastEthernet0/1
Switch(config-if)#no switchport
Switch(config-if)#ip address 192.168.3.1 255.255.255.0
单线vlan配置
Router(config-if)#interface GigabitEthernet0/0.1
Router(config-subif)#encapsulation dot1q 2
Router(config-subif)#ip address 192.168.1.1 255.255.255.0
dhcp
wanglei(config)#ip dhcp excluded-address 192.168.1.1
wanglei(config)#ip dhcp pool dhcppool1
wanglei(dhcp-config)#network 192.168.1.0 255.255.255.0
wanglei(dhcp-config)#default-router 192.168.1.1
wanglei(dhcp-config)#dns-server 192.168.1.1
wanglei(dhcp-config)#dns-server 61.128.114.133
静态nat
Router(config)#ip nat inside source static 192.168.1.2 192.168.2.3
Router(config)#ip nat inside source static 192.168.1.3 192.168.2.4
show ip nat translations
Router(config)#ip nat pool aaa 192.168.2.20 192.168.2.30 netmask 255.255.255.0
Router(config)#ip nat inside source list 1 pool aaa
Router(config)#access-list 1 permit 192.168.1.0 255.255.255.0
Router(config)#show ip nat translations
debug ip nat
内部10.1.1.3 转化 170.168.2.2
重载
Router(config)#ip nat pool aaa 192.168.2.1 192.168.2.1 netmask 255.255.255.0
Router(config)#ip nat inside source list 1 pool aaa overload
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)#exit
不重载
Router(config)#ip nat pool aaa 192.168.2.5 192.168.2.15 netmask 255.255.255.0
Router(config)#ip nat inside source list 1 pool aaa
Router(config)#access-list 1 permit 192.168.1.0 0.0.0.255
标签:add cisc ast exclude 重载 sid 三层交换机 shutdown ip add
原文地址:http://www.cnblogs.com/luoluohua/p/7737434.html