282615460 发表于 2012-7-26 13:19 static/image/common/back.gif
楼主问题解决了吗?我的是ros3.3建立了多个dhcp到vlan端口上客户端能获取到ip地址可就是没有办法上网有 ...
没解决,没有实际环境,最近又比较忙。理论终是理论,等我有交换机了我就试下 交换机配置
vlan batch 100 to 101 107 4000
dhcp enable
interface Vlanif100
ip address 192.168.100.1 255.255.255.0
dhcp select relay
dhcp relay server-ip 1.1.1.1
interface Vlanif101
ip address 192.168.101.1 255.255.255.0
dhcp select relay
dhcp relay server-ip 1.1.1.1
interface Vlanif4000
ip address 1.1.1.2 255.255.255.252
interface GigabitEthernet1/0/0
port link-type access
port default vlan 100
interface GigabitEthernet1/0/1
port link-type access
port default vlan 101
interface GigabitEthernet1/0/7
port link-type access
port default vlan 107
interface GigabitEthernet1/0/23
port link-type trunk
port trunk pvid vlan 4000
port trunk allow-pass vlan 100 to 101 107 4000
ip route-static 0.0.0.0 0.0.0.0 1.1.1.1
ROS配置
/ip pool
add name=v100 ranges=192.168.100.2-192.168.100.100
add name=v101 ranges=192.168.101.2-192.168.101.100
/ip dhcp-server
add address-pool=v100 authoritative=after-2sec-delay bootp-support=static \
disabled=no interface=ether1 lease-time=3d name=v100 relay=192.168.100.1
add address-pool=v101 authoritative=after-2sec-delay bootp-support=static \
disabled=no interface=ether1 lease-time=3d name=v101 relay=192.168.101.1
/ip dhcp-server network
add address=192.168.100.0/24 dhcp-option="" dns-server=\
114.114.114.114,114.114.115.115 gateway=192.168.100.1 netmask=24 \
ntp-server="" wins-server=""
add address=192.168.101.0/24 dhcp-option="" dns-server=\
114.114.114.114,114.114.115.115 gateway=192.168.101.1 netmask=24 \
ntp-server="" wins-server=""
/ip address
add address=1.1.1.1/30 disabled=no interface=ether1 network=1.1.1.0
/ip route
add disabled=no distance=1 dst-address=192.168.100.0/23 gateway=1.1.1.2 \
scope=30 target-scope=10
tangdong 发表于 2012-7-28 13:42 static/image/common/back.gif
交换机配置
vlan batch 100 to 101 107 4000
dhcp enable
版主能看看我的问题吗?不同的vlan下面的客户端能获取到ros分配的ip地址怎么就上不了网呢?pppoe用户是不用vlan下面的建立的不同的用户 pppoe用户能跨vlan拨号我的交换机是h3cs3600的交换机
学习了!!!!!! 版主,能否给出交换机的型号和ROS的版本号,华为S2326TP-EI交换机可以按你说的配置吗? e_zhangiso 发表于 2012-7-29 21:56 static/image/common/back.gif
版主,能否给出交换机的型号和ROS的版本号,华为S2326TP-EI交换机可以按你说的配置吗?
2326不支持dhcp 中继,三层交换机基本都支持,二层交换机有小部分支持! 版主太牛了,可惜没有真实环境测试 dhcp中继,才是正道
页:
1
[2]