32 lines
680 B
Markdown
32 lines
680 B
Markdown
enable
|
|
configure terminal
|
|
interface e0/0
|
|
no ip address
|
|
no shutdown
|
|
interface e0/1
|
|
no ip address
|
|
no shutdown
|
|
interface e0/0.30
|
|
encapsulation dot1Q 30
|
|
ip address 10.10.3.1 255.255.255.0
|
|
interface e0/0.40
|
|
encapsulation dot1Q 40
|
|
ip address 10.10.4.1 255.255.255.0
|
|
interface e0/1.60
|
|
encapsulation dot1Q 60
|
|
ip address 10.10.6.1 255.255.255.0
|
|
interface e0/2
|
|
ip address 55.55.55.105 255.255.255.252
|
|
no shutdown
|
|
ip route 0.0.0.0 0.0.0.0 55.55.55.106
|
|
ip access-list standard NAT_ACL
|
|
permit 10.10.0.0 0.0.255.255
|
|
interface e0/0
|
|
ip nat inside
|
|
interface e0/1
|
|
ip nat inside
|
|
interface e0/2
|
|
ip nat outside
|
|
ip nat inside source list NAT_ACL interface e0/2 overload
|
|
end
|
|
write memory |