ENSP配置 实例九 动态Nat配置

时间:2024-04-13 15:01:26

ENSP配置 实例九 动态Nat配置

ENSP配置 实例九 动态Nat配置
sy
[Huawei]sy R1
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.1.254 24
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 200.0.12.1 24

[R1]nat address-group 1 200.0.12.3 200.0.12.5 ##

[R1]acl 2000 ##
[R1-acl-basic-2000]rule 5 permit source 192.168.1.0 0.0.0.255
[R1-acl-basic-2000]q

[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]nat outbound 2000 address-group 1

[R1-GigabitEthernet0/0/1]undo nat outbound 2000 address-group 1 ##切换
[R1-GigabitEthernet0/0/1]nat outbound 2000 address-group 1 no-pat ##切换

[R1]dis nat address-group 1 ## 配置验证

静态nat配置
[R1]int g0/0/0 # [R1-GigabitEthernet0/0/0]ip add 192.168.1.254 24
[R1-GigabitEthernet0/0/0]int g0/0/1 # [R1-GigabitEthernet0/0/1]ip add 200.0.12.1 24
[R1-GigabitEthernet0/0/1]nat static globle 200.0.12.1 inside 192.168.1.1
[R1-GigabitEthernet0/0/1]nat static globle 200.0.12.1 inside 192.168.1.2
Easy IP配置

[R1]acl 2000
[R1-acl-basic-2000]rule 5 permit source 192.168.1.0 0.0.0.255
[R1-acl-basic-2000]q

[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]nat outbound 2000