单臂路由+NAT
原创
©著作权归作者所有:来自51CTO博客作者Jon_Chou的原创作品,请联系作者获取转载授权,否则将追究法律责任
单臂路由 NAT:
Route0;
En
Conf t
Int f0/0.1
Encap dot1Q 2
Ip add 192.168.0.1 255.255.255.0
Exit
Int f0/0.2
Encap dot1Q 3
Ip add 192.168.1.1 255.255.255.0
End
Conf t
Int s1/0
Ip add 2.2.2.2 255.255.255.0
End
Conf t
Access-list 1 permit 192.168.0.0 0.255.255.255
Ip nat pool NAT 2.2.2.2 2.2.2.5 netmask 255.255.255.0
Ip nat inside source list 1 pool NAT overload
Int s1/0
ip nat outside
int f0/0
ip nat inside
end
conf t
route rip
ver 2
net 2.2.2.0
net 192.168.0.0
net 192.168.1.0
end
Switch:
Enable
Vlan data
Vlan 2
Vlan 3
Exit
Conf t
Int f0/2
Switchport access vlan 2
int f0/3
switchport access vlan 3
end
conf t
int f0/1
switchport mode trunk
Route 1:
En
Conf t
Int s1/0
Ip add 2.2.2.3 255.255.255.0
Clock rate 64000
No shut
上一篇:Cisco IGRP
下一篇:HUAWEI 路由器 与防火墙
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
mstp+vrrp+ospf+nat
mstp+vrrp+ospf+nat
优先级 ci Standard