|
发表于 2012-3-31 20:19:03
|
显示全部楼层
ROS直接在连接交换机的那个口添加个hotspot就行,不需要去点设置向导!交换机设置好IP,网关,dhcp,ROS做一下到交换机上dhcp段的路由,电脑插上交换机,自动获取到IP,打开浏览器,跳出web认证页面!万事!- SWITCH# show running-config
- !
- hostname SWITCH
- !
- syslog output info local volatile
- syslog output info local non-volatile
- !
- module dmi enable
- fan operation off
- service dhcp
- !
- bridge
- vlan create 100,200
- !
- vlan add default 1-26,29-42 untagged
- vlan add br100 28 untagged
- vlan add br200 27 untagged
- !
- vlan pvid 1-26,29-42 1
- vlan pvid 27 200
- vlan pvid 28 100
- !
- !
- interface lo
- no shutdown
- !
- interface default
- description 25 l
- bandwidth 10g
- ip address dhcp
- no multicast
- !
- interface br100
- no shutdown
- description uplink
- ip address 192.168.1.2/30
- !
- interface br200
- no shutdown
- description to-lan
- ip address 10.10.10.1/24
- !
- ip route 0.0.0.0/0 192.168.1.1
- !
- ip dhcp class 1
- !
- ip dhcp pool vlan200
- network 10.10.10.0/24
- default-router 10.10.10.1
- range 10.10.10.2 10.10.10.200
- dns-server 202.96.134.133 202.96.128.166
- !
- end
- SWITCH#
复制代码 |
|