ros3.3加交换机建立和vlan后双adsl的 pcc负载另加hotspot限路由
本帖最后由 qile 于 2011-3-28 11:18 编辑折腾几晚上没有睡觉!!下载不少什么ppc 负载 什么vlan划分 ,不加hotspot 都不好使 更别说.....
花那么多铜板 没有弄好,今天早上实在没办法自己看官方教程 终于成功
考虑自己以前穷人买不起附件,有不弄乱灌水,有时候把仅有的几个铜板购买啦 下载下来居然是无法打开的附件!无语
我不收费 大家不要灌水,有问题提 我免费给大家说说我怎么弄 大家照猫画虎就可以 有问题留言
顺便送我改的hotspot登录界面一张 (感谢中国移动)
--------------------先说ppc设置---------------------
/ip firewall mangle add action=mark-connection chain=prerouting comment="" disabled=no \
new-connection-mark=1 passthrough=yes per-connection-classifier=\
both-addresses:2/1 src-address=10.0.10.0/24
add action=mark-connection chain=prerouting comment="" disabled=no \
new-connection-mark=2 passthrough=yes per-connection-classifier=\
both-addresses:2/0 src-address=10.0.10.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=2 \
disabled=no new-routing-mark=2 passthrough=yes src-address=10.0.10.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=1 \
disabled=no new-routing-mark=1 passthrough=yes src-address=10.0.10.0/24
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 \
routing-mark=2
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
pppoe-out1 routing-mark=1
华为的华为 S2403H-AC交换机 vlan划分及ros对接
本帖最后由 qile 于 2011-3-28 11:08 编辑华为的华为 S2403H-AC交换机 顺便说下怎么升级交换机
去h3c下载升级固件 下载授权用户是yx800 密码是 01230123 (其他华为交换机和h3c软件下载如果没权限也可以用这个登录)
下载地址
http://www.h3c.com.cn/Service/Software_Download/Other_Product/Quidway_Switches/Quidway_S2000/Quidway_S2403H/
升级有好几种方式tftp最快 最简单
下面是com控制用tftp升级
<Quidway>r
This will reboot Switch. Continue? y
%Jan1 23:01:34 2002 Quidway DEVM/5/DEV_LOG:Slot=1;Switch
Starting......
*******************************************
* *
* Quidway S2403H BOOTROM, Version 120 *
* *
*******************************************
Copyright(C) 2000-2003 by HUAWEI TECHNOLOGIES CO.,LTD.
Creation Date : Jul 22 2003, 11:38:42
CPU Type : ARM
CPU Clock Speed : 62.5MHz
Memory Size : 24MB
Initialize LS4BLTSU ......................OK!
SDRAM selftest............................OK!
FLASH selftest............................OK!
Switch chip selftest......................OK!
Port 26 has no module
PHY selftest..............................OK!
Please check port leds..............finished!
The switch Mac is: 00E0-FC2B-3A36
Press Ctrl-B to enter Boot Menu... 5
Password :
BOOTMENU
1. Download application file to flash
2. Select application file to boot
3. Display all files in flash
4. Delete file from flash
5. Modify bootrom password
6. Set switch HGMP mode
0. Reboot
Enter your choice(0-6): 1
Please set application file download protocol parameter:
1. Set TFTP protocol parameter
2. Set FTP protocol parameter
3. Set XMODEM protocol parameter
0. Return to boot menu
Enter your choice(0-3): 1
Load File name : all_flash.appall_flash.app
Switch IP address : 10.110.100.12310.0.1.73
Server IP address : 10.110.100.43
Are you sure to download file to flash? Yes or No(Y/N)n
Please set application file download protocol parameter:
1. Set TFTP protocol parameter
2. Set FTP protocol parameter
3. Set XMODEM protocol parameter
0. Return to boot menu
Enter your choice(0-3): 1
Load File name : all_flash.app
Switch IP address : 10.0.1.73
Server IP address : 10.110.100.4310.0.1.73
Are you sure to download file to flash? Yes or No(Y/N)y
附送 tftp软件
vlan划分 命令太乱 先手输吧
建立vlan
接入界面后 输入 con
然后建立vlan 2-2和vlan 25输入 vlan 2 port eth 2 , vlan 3port eth 3 ,vlan 25 port eth 25 然后在25口设置trunk 输入 int eth port 25 ,port link-type trunk valn25 之后加入 2端口 和3端口 port trunk pirme eth 2和port trunk pirme eth 3
完事 [ 本帖最后由 qile 于 2011-3-28 11:12 编辑 ]
/interface vlan
add arp=enabled comment="" disabled=no interface=ether1 mtu=1500 name=vlan1 \
use-service-tag=no vlan-id=10
add arp=enabled comment="" disabled=no interface=ether1 mtu=1500 name=vlan2 \
use-service-tag=no vlan-id=12
/interface bridge
add admin-mac=00:35:AD:BB:1F:EA ageing-time=5m arp=enabled auto-mac=no \
comment="" disabled=no forward-delay=15s l2mtu=65535 max-message-age=20s \
mtu=1500 name=ADSL-1 priority=0x8000 protocol-mode=none \
transmit-hold-count=6
add admin-mac=00:DA:60:63:DA:0A ageing-time=5m arp=enabled auto-mac=no \
comment="" disabled=no forward-delay=15s l2mtu=65535 max-message-age=20s \
mtu=1500 name=ADSL-2 priority=0x8000 protocol-mode=none \
transmit-hold-count=6
/interface bridge port
add bridge=ADSL-1 comment="" disabled=no edge=auto external-fdb=auto horizon=\
none interface=vlan1 path-cost=10 point-to-point=auto priority=0x80
add bridge=ADSL-2 comment="" disabled=no edge=auto external-fdb=auto horizon=\
none interface=vlan2 path-cost=10 point-to-point=auto priority=0x80
/interface pppoe-client add name=pppoe-out1 interface=ADSL-1 user=shengros@xmadsl password=abcd1234 add-default-route=yes disabled=no
/interface pppoe-client add name=pppoe-out2 interface=ADSL-2 user=sros@xmadsl password=abcd1234 add-default-route=yes disabled=no
hotspot的建立
[ 本帖最后由 qile 于 2011-3-28 11:17 编辑 ]/ip hotspot profile
set default dns-name="" hotspot-address=0.0.0.0 html-directory=hotspot \
http-proxy=0.0.0.0:0 login-by="" name=default rate-limit="" smtp-server=\
0.0.0.0 use-radius=no
add dns-name=www.gxy.com hotspot-address=10.0.10.254 html-directory=hotspot \
http-cookie-lifetime=3d http-proxy=0.0.0.0:8080 login-by=\
cookie,http-chap,http-pap name=hsprof1 nas-port-type=ethernet \
radius-accounting=yes radius-default-domain="" radius-interim-update=\
received radius-location-id="" radius-location-name="" radius-mac-format=\
XX:XX:XX:XX:XX:XX rate-limit="" smtp-server=0.0.0.0 split-user-domain=no \
use-radius=yes
/ip hotspot
add disabled=no idle-timeout=5m interface=lan keepalive-timeout=none name=\
hotspot1 profile=hsprof1
/ip hotspot user profile
set default keepalive-timeout=2m name=default rate-limit=30000/4000000 \
shared-users=1 status-autorefresh=1m transparent-proxy=no
add address-pool=hs-pool-1 advertise=no idle-timeout=20m keepalive-timeout=\
10m name=4m open-status-page=always rate-limit=100k/3200k shared-users=1 \
status-autorefresh=6m transparent-proxy=yes
add address-pool=hs-pool-1 advertise=no idle-timeout=10m keepalive-timeout=2m \
name=3m open-status-page=always rate-limit=50k/1700k shared-users=1 \
status-autorefresh=4m transparent-proxy=yes
add address-pool=hs-pool-1 advertise=no idle-timeout=10m keepalive-timeout=2m \
name=2M open-status-page=always rate-limit=25000/1200000 shared-users=1 \
status-autorefresh=4m transparent-proxy=yes
add address-pool=hs-pool-1 advertise=yes advertise-interval=20m \
advertise-timeout=1m2s advertise-url=qf.html idle-timeout=20m \
keepalive-timeout=2m name=zuanxiang open-status-page=always rate-limit=\
50000/1000000 session-timeout=6h shared-users=1 status-autorefresh=1m \
transparent-proxy=yes
add address-pool=hs-pool-1 advertise=no idle-timeout=none keepalive-timeout=\
2m name=max open-status-page=always shared-users=1 status-autorefresh=1m \
transparent-proxy=yes
记得加一个用户 另 /ip hotspot ip-binding
add address=10.0.1.192 comment="" disabled=no server=hotspot1 type=bypassed
add address=123.179.142.194 comment="" disabled=yes server=hotspot1 type=\
bypassed
add address=10.0.1.193 comment="" disabled=no server=hotspot1 type=bypassed
add address=10.0.1.31 comment="" disabled=no server=hotspot1 type=bypassed
如果你没加用户 设置了 ip-binding ip为本机 你还可以通过ros登录 或者你用过刚才加的那个用和登录后才可以使用ros 要不当你建立玩hotspot后 你就没法用ros管理啦一定记住 可以,楼主折腾几天终于搞定,恭喜。 回复 qile 的帖子
想看看视频教程加详细DOC说明教程。。 羡慕啊~我还在为VLAN郁闷 新人来学习了 很久没用过HOT了,因为限了路由所以好多客户接受不了.最后只能放弃 大好人啊 :lol 本帖最后由 6376657 于 2011-5-30 01:02 编辑
非常感谢楼主!看了你的贴解决了我三大问题!第一H3C S5100-24P的升级软件我下载了!
第二PCC按照你的规则表我添加成功了! 第三HOT原来是这样! 作为我这样的菜鸟学习期间非常感谢!真挚的祝福你!
方便的话,请加QQ289917592注:ROS 向你学习!~ 小手一抖,铜板拿走 楼主精神可加,努力!!! 学习学习,实验下 东西不错,学习一下了。
页:
[1]
2