当前位置:主页 > 路由器地址 >

MSR30-40路由器设置地址映射问题

作者:jida2010 发布时间:2015-01-13 阅读: 转至微博:

H3C MSR 30-40路由器原有数据:
<H3C>dis cu
#
version 5.20, Release 1719, Basic
#
sysname H3C
#
super password level 3 simple adminadmin
#
domain default enable system
#
acl number 2000
rule 0 permit source 192.168.0.0 0.0.255.255
#
vlan 1
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
user-group system
#
local-user admin
password cipher .]@USE=B,53Q=^Q`MAF4<1!!
authorization-attribute level 3
service-type telnet
local-user superman
password simple superwomen
service-type telnet
#               
interface Aux0  
async mode flow
link-protocol ppp
#               
interface NULL0
#               
interface GigabitEthernet0/0
port link-mode route
nat outbound 2000
ip address 20.38.205.196 255.255.255.192
#               
interface GigabitEthernet0/1
port link-mode route
ip address 192.168.200.2 255.255.255.0
#               
ip route-static 0.0.0.0 0.0.0.0 20.38.205.193
ip route-static 192.168.0.0 255.255.0.0 192.168.200.1
#               
user-interface con 0
user-interface aux 0
user-interface vty 0 4
authentication-mode scheme
#               
return         
               
<H3C>
<H3C>
要求:
增加将192.168.0.6的80端口映视到20.38.205.196,也就是说H3C MSR路由器外面的地址访问20.38.205.196时能够直接访问到路由器内的192.168.0.6的80端口(也就是说要将192.168.0.6作为一台web服务器,要将数据做通就可以了)
拓扑图如下:
 
H3C MSR 30-40对应S9303的16口
服务器:192.168.0.6对应S9303的31口
S9303数据如下:
ip pool neiwang
gateway-list 192.168.255.1
network 192.168.255.0 mask 255.255.255.0
dns-list 10.211.151.15
lease day 30 hour 0 minute 0
#
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
local-user gangnanzhengfu password cipher OUM!K%F<+$[Q=^Q`MAF4<1!!
local-user gangnanzhengfu privilege level 15
local-user gangnanzhengfu service-type telnet
#
interface Vlanif20
ip address 192.168.11.1 255.255.255.0
#
interface Vlanif101
ip address 192.168.101.1 255.255.255.0
#
interface Vlanif102
ip address 192.168.102.1 255.255.255.0
#
interface Vlanif103
ip address 192.168.103.1 255.255.255.0
#
interface Vlanif104
ip address 192.168.104.1 255.255.255.0
#
interface Vlanif105
ip address 192.168.105.1 255.255.255.0
#
interface Vlanif106
ip address 192.168.106.1 255.255.255.0
#
interface Vlanif107
ip address 192.168.107.1 255.255.255.0
#
interface Vlanif108
ip address 192.168.108.1 255.255.255.0
#
interface Vlanif109
ip address 192.168.109.1 255.255.255.0
#
interface Vlanif110
ip address 192.168.110.1 255.255.255.0
#
interface Vlanif111
ip address 192.168.111.1 255.255.255.0
#
interface Vlanif112
ip address 192.168.112.1 255.255.255.0
#
interface Vlanif113
ip address 192.168.113.1 255.255.255.0
#
interface Vlanif114
ip address 192.168.114.1 255.255.255.0
#
interface Vlanif115
ip address 192.168.115.1 255.255.255.0
#
interface Vlanif116
ip address 192.168.116.1 255.255.255.0
#
interface Vlanif117
ip address 192.168.117.1 255.255.255.0
#
interface Vlanif118
ip address 192.168.118.1 255.255.255.0
#
interface Vlanif119
ip address 192.168.119.1 255.255.255.0
#
interface Vlanif120
ip address 192.168.120.1 255.255.255.0
#
interface Vlanif121
ip address 192.168.121.1 255.255.255.0
#
interface Vlanif122
ip address 192.168.122.1 255.255.255.0
#
interface Vlanif123
ip address 192.168.123.1 255.255.255.0
#
interface Vlanif124
ip address 192.168.124.1 255.255.255.0
#
interface Vlanif125
ip address 192.168.125.1 255.255.255.0
#
interface Vlanif126
ip address 192.168.126.1 255.255.255.0
#
interface Vlanif127
ip address 192.168.127.1 255.255.255.0
#
interface Vlanif128
ip address 192.168.128.1 255.255.255.0
#
interface Vlanif129
ip address 192.168.129.1 255.255.255.0
#
interface Vlanif130
ip address 192.168.130.1 255.255.255.0
#
interface Vlanif131
ip address 192.168.131.1 255.255.255.0
#
interface Vlanif132
ip address 192.168.132.1 255.255.255.0
#
interface Vlanif133
ip address 192.168.133.1 255.255.255.0
#
interface Vlanif134
ip address 192.168.134.1 255.255.255.0
#
interface Vlanif135
ip address 192.168.135.1 255.255.255.0
#
interface Vlanif136
ip address 192.168.136.1 255.255.255.0
#
interface Vlanif137
ip address 192.168.137.1 255.255.255.0
#
interface Vlanif138
ip address 192.168.138.1 255.255.255.0
#
interface Vlanif200
#
interface Vlanif300
ip address 192.168.0.1 255.255.255.0
#
interface Vlanif1000
ip address 192.168.254.1 255.255.255.0
dhcp select interface
dhcp server dns-list 10.211.151.15
dhcp server lease day 30 hour 0 minute 0
#
interface Vlanif1023
ip address 172.18.0.1 255.255.255.252
#
interface Vlanif2000
ip address 192.168.200.1 255.255.255.0
#
interface Vlanif3000
ip address 192.168.255.1 255.255.255.0
dhcp select global
#
interface Vlanif4000
ip address 172.17.0.254 255.255.0.0
dhcp select global
#
interface Ethernet0/0/0
shutdown
#
interface GigabitEthernet1/0/0
port hybrid tagged vlan 1023
#
interface GigabitEthernet1/0/1
port hybrid tagged vlan 1023
#
interface GigabitEthernet1/0/2
#
interface GigabitEthernet1/0/3
port hybrid tagged vlan 1023
#
interface GigabitEthernet1/0/4
port hybrid tagged vlan 1023
#
interface GigabitEthernet1/0/5
port hybrid tagged vlan 1023
#
interface GigabitEthernet1/0/6
#
interface GigabitEthernet1/0/7
#
interface GigabitEthernet1/0/8
port hybrid tagged vlan 1023
#
interface GigabitEthernet1/0/9
#
interface GigabitEthernet1/0/10
#
interface GigabitEthernet1/0/11
port hybrid tagged vlan 1023
#
interface GigabitEthernet1/0/12
#
interface GigabitEthernet1/0/13
port hybrid tagged vlan 1023
#
interface GigabitEthernet1/0/14
port hybrid tagged vlan 1023
#
interface GigabitEthernet1/0/15
port hybrid tagged vlan 1023
#
interface GigabitEthernet1/0/16
#
interface GigabitEthernet1/0/17
#
interface GigabitEthernet1/0/18
port hybrid tagged vlan 1023
#
interface GigabitEthernet1/0/19
#
interface GigabitEthernet1/0/20
#
interface GigabitEthernet1/0/21
port hybrid tagged vlan 1023
#
interface GigabitEthernet1/0/22
#
interface GigabitEthernet1/0/23
#
interface GigabitEthernet2/0/0
description to_fanghuoqiang_eth2
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 200 to 230 4000
#
interface GigabitEthernet2/0/1
description to_PTN6200_eth1
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 10
port-isolate enable group 1
#
interface GigabitEthernet2/0/2
description to_PTN6200_eth2
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 20
port-isolate enable group 1
#
interface GigabitEthernet2/0/3
description to_PTN6200_eth3
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 30 200 to 230
port-isolate enable group 1
#
interface GigabitEthernet2/0/4
description to_PTN6200_eth4
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 111 to 140 300
port-isolate enable group 1
#
interface GigabitEthernet2/0/5
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 20 101 to 110
#
interface GigabitEthernet2/0/6
shutdown
port link-type access
port default vlan 20
#
interface GigabitEthernet2/0/7
port link-type access
port default vlan 20
#
interface GigabitEthernet2/0/8
port link-type access
port default vlan 20
#
interface GigabitEthernet2/0/9
port link-type access
port default vlan 20
#
interface GigabitEthernet2/0/10
port link-type access
port default vlan 20
#
interface GigabitEthernet2/0/11
shutdown
port link-type access
port default vlan 20
#
interface GigabitEthernet2/0/12
shutdown
port link-type access
port default vlan 20
#
interface GigabitEthernet2/0/13
description DCHP
port link-type access
port default vlan 4000
#
interface GigabitEthernet2/0/14
description DCHP
port link-type access
port default vlan 4000
#
interface GigabitEthernet2/0/15
description DCHP
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 4000
#
interface GigabitEthernet2/0/16
port link-type access
port default vlan 2000
#
interface GigabitEthernet2/0/17
shutdown
port link-type access
port default vlan 139
#
interface GigabitEthernet2/0/18
shutdown
port link-type access
port default vlan 139
#
interface GigabitEthernet2/0/19
shutdown
port link-type access
port default vlan 139
#
interface GigabitEthernet2/0/20
shutdown
port link-type access
port default vlan 139
#
interface GigabitEthernet2/0/21
shutdown
port link-type access
port default vlan 139
#
interface GigabitEthernet2/0/22
shutdown
port link-type access
port default vlan 10
#
interface GigabitEthernet2/0/23
port link-type access
port default vlan 10
#
interface GigabitEthernet2/0/24
shutdown
port link-type access
port default vlan 3000
#
interface GigabitEthernet2/0/25
port link-type access
port default vlan 3000
#
interface GigabitEthernet2/0/26
shutdown
port link-type access
port default vlan 3000
#
interface GigabitEthernet2/0/27
shutdown
port link-type access
port default vlan 1000
#
interface GigabitEthernet2/0/28
shutdown
port link-type access
port default vlan 1000
#
interface GigabitEthernet2/0/29
port hybrid tagged vlan 1023
#
interface GigabitEthernet2/0/30
port link-type access
port default vlan 300
#
interface GigabitEthernet2/0/31
port link-type access
port default vlan 300
#
interface GigabitEthernet2/0/32
port link-type access
port default vlan 300
#
interface GigabitEthernet2/0/33
port link-type access
port default vlan 300
#
interface GigabitEthernet2/0/34
port link-type access
port default vlan 300
#
interface GigabitEthernet2/0/35
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 20 101 300
#
interface GigabitEthernet2/0/36
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 20 101 300
#
interface GigabitEthernet2/0/37
port link-type access
port default vlan 300
#
interface GigabitEthernet2/0/38
port link-type access
port default vlan 300
#
interface GigabitEthernet2/0/39
shutdown
port hybrid tagged vlan 1023
#
interface GigabitEthernet2/0/40
shutdown
port link-type access
port default vlan 230
#
interface GigabitEthernet2/0/41
port link-type access
port default vlan 230
#
interface GigabitEthernet2/0/42
shutdown
port link-type access
port default vlan 230
#
interface GigabitEthernet2/0/43
port link-type access
port default vlan 230
#
interface GigabitEthernet2/0/44
port link-type access
port default vlan 230
#
interface GigabitEthernet2/0/45
port link-type access
port default vlan 230
#
interface GigabitEthernet2/0/46
shutdown
port link-type access
port default vlan 230
#
interface GigabitEthernet2/0/47
port link-type trunk
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 230 300
undo negotiation auto
speed 100
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 192.168.200.2
#
snmp-agent
snmp-agent local-engineid 000007DB7FFFFFFF00007198
snmp-agent sys-info version v3
snmp-agent trap enable basetrap
#
user-interface maximum-vty 15
user-interface con 0
idle-timeout 0 0
screen-length 0
user-interface vty 0 4
authentication-mode aaa
user privilege level 15
idle-timeout 0 0
screen-length 0
user-interface vty 5 14
authentication-mode none
user privilege level 3
idle-timeout 0 0
screen-length 0
user-interface vty 16 20
#
port-group link-type
#
port-group up
#
return
<shiju_S9303>

本文由路由器网www.luyouqiwang.net站长编辑整理,转载请注明出处。