打算让VLAN 下的电脑上网,例如接在VLAN101下的172.10.1.2的电脑上网。23接口在VLAN1000上,接口配置192.168.100.2上联路由器LAN口 192.168.100.1,路由器已经写好反向路由,电脑172.10.1.2可以ping通路由器192.168.100.1,但是无法上网 ,求大神指点,是不是没有写NAT?如果是的话需要怎么写?谢谢
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C]dis cur
[H3C]dis current-configuration
#
version 5.20, Release 2220P02
#
sysname H3C
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
#
domain default enable system
#
telnet server enable
#
password-recovery enable
#
vlan 1
#
vlan 5
description senlingongan
#
vlan 6
description guoshuiju
#
vlan 8
#
vlan 15
#
vlan 24
#
vlan 32
#
vlan 40
#
vlan 48
#
vlan 64
#
vlan 72
#
vlan 80
#
vlan 88
description changzhuang
#
vlan 96
#
vlan 101
#
vlan 104
#
vlan 107 to 108
#
vlan 112
#
vlan 116
#
vlan 120
#
vlan 136
description huaishu
#
vlan 144
#
vlan 1000
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
user-group system
group-attribute allow-guest
#
local-user admin
password cipher $c$3$1fGhpqoqHGGHc/06wDufhF9+g/QFRififoxAKSqw
authorization-attribute level 3
service-type telnet terminal
service-type web
#
interface NULL0
#
interface Vlan-interface1
#
interface Vlan-interface5
ip address 172.10.5.1 255.255.255.0
#
interface Vlan-interface6
ip address 172.10.6.1 255.255.248.0
#
interface Vlan-interface8
ip address 172.10.8.1 255.255.248.0
#
interface Vlan-interface15
ip address 172.10.56.1 255.255.248.0
#
interface Vlan-interface24
ip address 172.10.24.1 255.255.248.0
#
interface Vlan-interface32
ip address 172.10.32.1 255.255.248.0
#
interface Vlan-interface40
ip address 172.10.40.1 255.255.248.0
#
interface Vlan-interface48
ip address 172.10.48.1 255.255.248.0
#
interface Vlan-interface64
ip address 172.10.64.1 255.255.248.0
#
interface Vlan-interface72
ip address 172.10.72.1 255.255.248.0
#
interface Vlan-interface80
ip address 172.10.80.1 255.255.248.0
#
interface Vlan-interface88
ip address 172.10.88.1 255.255.248.0
#
interface Vlan-interface96
ip address 172.10.96.1 255.255.248.0
#
interface Vlan-interface101
ip address 172.10.1.1 255.255.255.0
#
interface Vlan-interface104
ip address 172.10.104.1 255.255.248.0
#
interface Vlan-interface107
ip address 172.10.7.1 255.255.255.0
#
interface Vlan-interface112
ip address 172.10.112.1 255.255.248.0
#
interface Vlan-interface116
ip address 172.10.16.1 255.255.248.0
#
interface Vlan-interface120
ip address 172.10.120.1 255.255.248.0
#
interface Vlan-interface136
ip address 172.10.136.1 255.255.248.0
#
interface Vlan-interface144
ip address 172.10.144.1 255.255.248.0
#
interface Vlan-interface1000
ip address 192.168.100.2 255.255.255.0
#
interface GigabitEthernet1/0/1
port access vlan 101
#
interface GigabitEthernet1/0/2
port access vlan 5
arp rate-limit disable
#
interface GigabitEthernet1/0/3
port access vlan 107
#
interface GigabitEthernet1/0/4
port access vlan 120
#
interface GigabitEthernet1/0/5
port access vlan 112
#
interface GigabitEthernet1/0/6
port access vlan 136
#
interface GigabitEthernet1/0/7
arp rate-limit disable
#
interface GigabitEthernet1/0/8
port access vlan 72
#
interface GigabitEthernet1/0/9
port access vlan 96
#
interface GigabitEthernet1/0/10
port access vlan 48
#
interface GigabitEthernet1/0/11
port access vlan 104
#
interface GigabitEthernet1/0/12
port access vlan 116
#
interface GigabitEthernet1/0/13
port access vlan 88
#
interface GigabitEthernet1/0/14
port access vlan 8
#
interface GigabitEthernet1/0/15
port access vlan 144
#
interface GigabitEthernet1/0/16
port access vlan 80
#
interface GigabitEthernet1/0/17
port access vlan 32
#
interface GigabitEthernet1/0/18
port access vlan 6
#
interface GigabitEthernet1/0/19
port access vlan 64
#
interface GigabitEthernet1/0/20
port access vlan 40
port auto-power-down
#
interface GigabitEthernet1/0/21
port access vlan 24
#
interface GigabitEthernet1/0/22
port access vlan 15
#
interface GigabitEthernet1/0/23
port access vlan 1000
arp rate-limit disable
#
interface GigabitEthernet1/0/24
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 2 to 4094
arp rate-limit disable
#
interface GigabitEthernet1/0/25
shutdown
#
interface GigabitEthernet1/0/26
shutdown
#
interface GigabitEthernet1/0/27
shutdown
#
interface GigabitEthernet1/0/28
shutdown
#
ip route-static 0.0.0.0 255.255.255.0 192.168.100.1
ip route-static 172.10.1.0 255.255.255.0 192.168.100.1
#
load xml-configuration
#
user-interface aux 0
user-interface vty 0 15
authentication-mode scheme
#
return
(0)
最佳答案
ip route-static 0.0.0.0 255.255.255.0 192.168.100.1这个缺省路由配置不对啊,修改 ip route-static 0.0.0.0 0.0.0.0 192.168.100.1,另外上层路由器确认正常开启nat和配置外网路由
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论