華為單臂路由nateasy_natserver配置示例

tjjingpan發表於2018-10-30

 路由器AR2配置

<Huawei>display current-configuration  
[V200R003C00]
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
 drop illegal-mac alarm
#
 set cpu-usage threshold 80 restore 75
#
acl number 2000  
 rule 5 permit source 192.168.30.0 0.0.0.255 
 rule 10 permit source 192.168.31.0 0.0.0.255 
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#
firewall zone Local
 priority 15
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/1.1
#
interface GigabitEthernet0/0/1.30
 dot1q termination vid 30
 ip address 192.168.30.1 255.255.255.0 
 arp broadcast enable
#
interface GigabitEthernet0/0/1.31
 dot1q termination vid 31
 ip address 192.168.31.1 255.255.255.0 
 arp broadcast enable
#
interface GigabitEthernet0/0/2
 ip address 1.1.1.1 255.255.255.0 
 nat server protocol tcp global current-interface 8080 inside 192.168.30.100 www
 nat outbound 2000
#
interface NULL0
#
user-interface con 0
 authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return

LSW1配置

<Huawei>display current-configuration 
#
sysname Huawei
#
vlan batch 30 to 31
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
drop-profile default
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
#
interface Vlanif30
 ip address 192.168.30.254 255.255.255.0
#
interface Vlanif31
 ip address 192.168.31.254 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
 port link-type access
 port default vlan 31
#
interface GigabitEthernet0/0/4
 port link-type trunk
 port trunk allow-pass vlan 30 to 31
#
interface GigabitEthernet0/0/5
 port link-type access
 port default vlan 30
#
interface GigabitEthernet0/0/6
#
interface GigabitEthernet0/0/7
#
interface GigabitEthernet0/0/8
#
interface GigabitEthernet0/0/9
#
interface GigabitEthernet0/0/10
#
interface GigabitEthernet0/0/11
#
interface GigabitEthernet0/0/12
#
interface GigabitEthernet0/0/13
#
interface GigabitEthernet0/0/14
#
interface GigabitEthernet0/0/15
#
interface GigabitEthernet0/0/16
#
interface GigabitEthernet0/0/17
#
interface GigabitEthernet0/0/18
#
interface GigabitEthernet0/0/19
#
interface GigabitEthernet0/0/20
#
interface GigabitEthernet0/0/21
#
interface GigabitEthernet0/0/22
#
interface GigabitEthernet0/0/23
#
interface GigabitEthernet0/0/24
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 192.168.30.1
#
user-interface con 0
user-interface vty 0 4
#
return

<Huawei> 

 

相關文章