如题,硬件连接是这样的:上级是一个普通路由器,下面接了S5700的24口(VLAN1),S5700的1口(VLAN10)和5口(VLAN20)分别接了两组PC,不会画图,用WORD做了张图,大家凑合着看吧.
软件方面:S5700已经开了WEB界面,除了原有的VLAN1以外,又增加了2个VLAN,已经设置好了DHCP,下面的PC均可获得IP,也可PING通S5700的VLAN1接口IP:192.168.2.57,但PING不通上级路由器的IP,所以无法上网,已经做了两条路由,详见配置,不知是我设置的不对,还是需要一个回头路由呢?还望各位高手指点,谢谢!
以下是此交换机的配置,
<Quidway>di cu
!Software Version V200R003C00SPC300
#
sysname Quidway
#
vlan batch 10 20
#
dhcp enable
#
ip pool 10
gateway-list 10.0.10.1
network 10.0.10.0 mask 255.255.255.0
dns-list 10.0.10.1 192.168.2.1
#
ip pool 20
gateway-list 10.0.20.1
network 10.0.20.0 mask 255.255.255.0
dns-list 10.0.20.1 192.168.2.1
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %@%@<Ir!H%j70Zg$%dSXIN0Dy;2S%@%@
local-user admin privilege level 3
local-user admin service-type http
#
interface Vlanif1
ip address 192.168.2.57 255.255.255.0
#
interface Vlanif10
ip address 10.0.10.1 255.255.255.0
dhcp select global
#
interface Vlanif20
ip address 10.0.20.1 255.255.255.0
dhcp select global
#
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 10
#
interface GigabitEthernet0/0/3
port link-type access
port default vlan 10
#
interface GigabitEthernet0/0/4
port link-type access
port default vlan 10
#
interface GigabitEthernet0/0/5
port link-type access
port default vlan 20
#
interface GigabitEthernet0/0/6
port link-type access
port default vlan 20
#
interface GigabitEthernet0/0/7
port link-type access
port default vlan 20
#
interface GigabitEthernet0/0/8
port link-type access
port default vlan 20
#
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 10.0.10.0 255.255.255.0 GigabitEthernet0/0/24 192.168.2.1
ip route-static 10.0.20.0 255.255.255.0 GigabitEthernet0/0/24 192.168.2.1
ip route-static 192.168.2.0 255.255.255.0 GigabitEthernet0/0/24 192.168.2.1
#
user-interface con 0
user-interface vty 0 4
user-interface vty 16 20
#
port-group 10
group-member GigabitEthernet0/0/1
group-member GigabitEthernet0/0/2
group-member GigabitEthernet0/0/3
group-member GigabitEthernet0/0/4
#
port-group 20
group-member GigabitEthernet0/0/5
group-member GigabitEthernet0/0/6
group-member GigabitEthernet0/0/7
group-member GigabitEthernet0/0/8
#
return
<Quidway>