单臂路由+NAT



单臂路由 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
 

你可能感兴趣的:(职场,NAT,路由,休闲,单臂)