68 lines
1.2 KiB
Markdown
68 lines
1.2 KiB
Markdown
enable
|
|
configure terminal
|
|
!
|
|
interface e0/0
|
|
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
|
|
no ip address
|
|
no shutdown
|
|
!
|
|
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
|
|
!
|
|
interface e0/3
|
|
ip address 192.168.20.2 255.255.255.248
|
|
no shutdown
|
|
!
|
|
ip route 0.0.0.0 0.0.0.0 55.55.55.106
|
|
ip route 10.10.1.0 255.255.255.0 192.168.20.1
|
|
ip route 10.10.2.0 255.255.255.0 192.168.20.1
|
|
ip route 10.10.5.0 255.255.255.0 192.168.20.1
|
|
!
|
|
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
|
|
!
|
|
ip dhcp pool LOGISTICS
|
|
network 10.10.3.0 255.255.255.0
|
|
default-router 10.10.3.1
|
|
dns-server 8.8.8.8
|
|
lease 7
|
|
!
|
|
ip dhcp excluded-address 10.10.3.1 10.10.3.10
|
|
!
|
|
ip dhcp pool STORAGE
|
|
network 10.10.4.0 255.255.255.0
|
|
default-router 10.10.4.1
|
|
dns-server 8.8.8.8
|
|
lease 7
|
|
!
|
|
ip dhcp excluded-address 10.10.4.1 10.10.4.10
|
|
!
|
|
end
|
|
write memory |