月天
路由器可以ping通外网,交换机却不可以,有没有朋友知道怎么配置?都是华为的设备月天
#
sysname meme_rou
#
dns resolve
dns server 192.168.159.2
#
acl number 2001
rule 1 permit
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher rh{@#<7F.<:z9:%F`[a=gt)#
local-user admin service-type http
#
firewall zone Local
priority 16
#
interface Ethernet0/0/0
description to_waiwang
ip address 192.168.159.100 255.255.255.0
#
interface Ethernet0/0/1
description to_neiwang
ip address 192.168.100.1 255.255.255.0
nat outbound 2001
#
interface Serial0/0/0
link-protocol ppp
#
interface Serial0/0/1
link-protocol ppp
#
interface Serial0/0/2
link-protocol ppp
#
interface Serial0/0/3
link-protocol ppp
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
wlan
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 192.168.159.2
#
user-interface con 0
user-interface vty 0 4
user-interface vty 16 20
#
return
[meme_rou]
User interface con0 is available
Please Press ENTER.
##################################
<meme_rou>
Dec 10 2016 22:46:50-08:00 meme_rou SNMP/4/COLDSTART:OID 1.3.6.1.6.3.1.1.5.1 col
dStart.
Dec 10 2016 22:46:49-08:00 meme_rou %%01CFM/3/RECOVERCMDFAIL(l)[0]:Failed to rec
over configuration priority 16 under view zone-Local.
Dec 10 2016 22:46:50-08:00 meme_rou %%01PHY/1/PHY(l)[1]: Ethernet0/0/0: chang
e status to up
Dec 10 2016 22:46:50-08:00 meme_rou %%01IFNET/4/LINK_STATE(l)[2]:The line protoc
ol IP on the interface Ethernet0/0/0 has entered the UP state.
Dec 10 2016 22:46:50-08:00 meme_rou %%01PHY/1/PHY(l)[3]: Ethernet0/0/1: chang
e status to up
Dec 10 2016 22:46:50-08:00 meme_rou %%01IFNET/4/LINK_STATE(l)[4]:The line protoc
ol IP on the interface Ethernet0/0/1 has entered the UP state.
<meme_rou&get;
<meme_rou&get;
<meme_rou&get;sys
<meme_rou&get;system-view
Enter system view, return user view with Ctrl+Z.
[meme_rou]
[meme_rou]dis cu
#
sysname meme_rou
#
dns resolve
dns server 192.168.159.2
#
acl number 2001
rule 1 permit
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher $9*a,nZr1~ECB7Ie7'/)(QB#
local-user admin service-type http
#
firewall zone Local
priority 16
#
interface Ethernet0/0/0
description to_waiwang
ip address 192.168.159.100 255.255.255.0
#
interface Ethernet0/0/1
description to_neiwang
ip address 192.168.100.1 255.255.255.0
nat outbound 2001
#
interface Serial0/0/0
link-protocol ppp
#
interface Serial0/0/1
link-protocol ppp
#
interface Serial0/0/2
link-protocol ppp
#
interface Serial0/0/3
link-protocol ppp
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
wlan
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 192.168.159.2
#
user-interface con 0
user-interface vty 0 4
user-interface vty 16 20
#
return
斯风里阿东广
好长 月天
这是交换机的==========================================
#
sysname meme_sw
#
vlan batch 10 20 30 40 100
#
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 Vlanif10
ip address 192.168.10.1 255.255.255.0
#
interface Vlanif20
ip address 192.168.20.1 255.255.255.0
#
interface Vlanif30
ip address 192.168.30.1 255.255.255.0
#
interface Vlanif40
ip address 192.168.40.1 255.255.255.0
#
interface Vlanif100
ip address 192.168.100.2 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
port link-type access
port default vlan 10
#
interface GigabitEthernet0/0/2
port link-type access
port default vlan 20
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 30
#
interface GigabitEthernet0/0/4
port link-type access
port default vlan 40
#
interface GigabitEthernet0/0/5
port link-type access
port default vlan 100
#
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
#
user-interface con 0
user-interface vty 0 4
#
return
斯风里阿东广
考虑一下交换机到路由器的路由,路由器到网关的路由,还要做网关到路由器,路由器再到交换机的路由
斯风里阿东广
路由器通,那路由器到网关这段是没问题的
弃放不,弃言不
192.168.0.0 16 192.168.100.2
月天
确实是没做回折路由,我不会啊,ALL.大哥教教我呗,我是新手
弃放不,弃言不
这条路由 你下面的PC机 就可以到外网了
斯风里阿东广
在网关上写,192.168.0.0 16 192.168.159.100
话说你的几个vlan掩码是不是都是24?
斯风里阿东广
没问题
在网关上写,192.168.0.0 16 192.168.159.100 这个应该就可以了
斯风里阿东广
这样所有去下面几个vlan的数据包都会路由到192.168.159.100这个端口,
斯风里阿东广
那么长的配置都有了,只差这么一条你不会写么,不科学啊 弃放不,弃言不
能远程就帮你搞定 然后问题共享 不行就算了
包外TI..子东
华三的s 5000 交换机 怎么恢复出厂设置。已经忘记密码
而且 Ctrl + B 无法使用
?
�҉҉҉҉҉҉҉ �货二小
Ctrl + B 怎么会不行?
只有这个办法啊
不然就只能找华为的售后了