📄 nee_acl.txt
字号:
################################################################################
# VPC
################################################################################
1
ip 10.0.0.2 10.0.0.1 8
2
ip 10.0.0.3 10.0.0.1 8
3
ip 20.0.0.2 20.0.0.1 8
################################################################################
# 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
e2/0 = R2 e2/0
e0/0 = S1 1
[[router R2]]
model = 3640
slot0 = NM-1E
slot1 = NM-16ESW
slot2 = NM-4E
slot3 = NM-4T
e0/0 = NIO_udp:30002:127.0.0.1:20002
[[ETHSW S1]]
3 = access 1 NIO_udp:30000:127.0.0.1:20000
4 = access 1 NIO_udp:30001:127.0.0.1:20001
################################################################################
# R1
################################################################################
!
enable
!
config terminal
!
hostname R1
no ip domain-lookup
!
ip access-list extend ext100
deny icmp host 10.0.0.3 host 90.0.0.2
permit ip any any
!
interface Ethernet0/0
ip address 10.0.0.1 255.0.0.0
no shutdown
!
interface Ethernet2/0
ip address 90.0.0.1 255.0.0.0
ip access-group ext100 out
half-duplex
no shutdown
!
router rip
network 10.0.0.0
network 90.0.0.0
!
exit
!
exit
!
copy running startup-config
!
################################################################################
# R2
################################################################################
!
enable
!
config terminal
!
hostname R2
no ip domain-lookup
!
ip access-list standard std1
deny 10.0.0.2
permit any
ip access-list extended refo
permit ip any any reflect iptraffic
ip access-list extended refi
evaluate iptraffic
permit ip any host 90.0.0.2
!
interface Ethernet0/0
ip address 20.0.0.1 255.0.0.0
ip access-group std1 out
no shutdown
!
interface Ethernet2/0
ip address 90.0.0.2 255.0.0.0
ip access-group refi in
ip access-group refo out
half-duplex
no shutdown
!
router rip
network 20.0.0.0
network 90.0.0.0
!
exit
!
exit
!
copy running startup-config
!
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -