📄 nat_final.txt
字号:
################################################################################
# NET
################################################################################
ghostios = true
sparemem = true
[localhost]
[[3640]]
image = \Program Files\Dynamips\images\c3640-ik9o3s-mz.124-10.image
ram = 96
idlepc = 0x605c8ad0
[[ROUTER R1]]
model = 3640
slot0 = NM-1E
slot1 = NM-16ESW
slot2 = NM-4E
slot3 = NM-4T
e0/0 = NIO_gen_eth:\Device\NPF_{C6E1CD0F-1A24-4C49-95E7-9EA448E0FA43}
e2/0 = S1 1
[[ROUTER R2]]
model = 3640
slot0 = NM-1E
slot1 = NM-16ESW
slot2 = NM-4E
slot3 = NM-4T
e2/0 = S1 2
[[ROUTER R3]]
model = 3640
slot0 = NM-1E
slot1 = NM-16ESW
slot2 = NM-4E
slot3 = NM-4T
e2/0 = S1 3
[[ETHSW S1]]
model = 3640
1 = access 1 NIO_udp:30000:127.0.0.1:20000
2 = access 1 NIO_udp:30001:127.0.0.1:20001
3 = access 1 NIO_udp:30002:127.0.0.1:20002
################################################################################
# R1
################################################################################
!
interface Ethernet0/0
ip address 59.64.224.137 255.255.255.0
ip nat inside
!
interface Ethernet2/0
ip address 10.0.0.1 255.0.0.0
ip nat outside
!
!
ip nat pool pool1 10.0.0.1 10.0.0.1 prefix-length 8
ip nat inside source list 1 pool pool1 overload
!
access-list 1 permit 59.64.224.0 0.0.0.255
!
################################################################################
# R2
################################################################################
!
interface Ethernet2/0
ip address 10.0.0.2 255.0.0.0
!
################################################################################
# R3
################################################################################
!
interface Ethernet2/0
ip address 10.0.0.3 255.0.0.0
!
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -