14.4 配置NAT
<R1>display current-configuration
[V200R003C00]
#
sysname R1
#
acl number 2001
rule 5 permit source 20.1.1.0 0.0.0.255
#
nat address-group 1 202.169.10.50 202.169.10.60
#
interface GigabitEthernet0/0/0
ip address 202.169.10.1 255.255.255.0
arp-proxy enable
nat static global 202.169.10.5 inside 10.1.1.1 netmask 255.255.255.255
nat outbound 2001 address-group 1 no-pat
#
interface GigabitEthernet0/0/1
ip address 10.1.1.254 255.255.255.0
#
interface GigabitEthernet0/0/2
ip address 20.1.1.254 255.255.255.0
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 202.169.10.2
#
Return
<R2>display current-configuration
[V200R003C00]
#
sysname R2
#
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
#
interface GigabitEthernet0/0/0
ip address 202.169.10.2 255.255.255.0
#
interface LoopBack0
ip address 202.169.20.1 255.255.255.0
#
return
——·扫描下方微信二维码,回复“HCNA手册”。即可领取完整电子版手册或为你答疑解惑。·——
|