找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 9913|回复: 12

[基础] ROS 3.30如何扩展WAN口?

[复制链接]
发表于 2012-5-1 13:09:32 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
ros 3.30如何扩展WAN口?
本人 的小服务器
一个WAN一个LAN 网卡

不过有8条ADSL 请问ROS 如何扩展WAN口 具体步骤 谢谢大家
routeros
发表于 2012-5-1 13:15:50 | 显示全部楼层
用802.1Q的VLAN交换机。一WAN口拨八个号.
routeros
回复

使用道具 举报

 楼主| 发表于 2012-5-1 13:39:43 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2012-5-1 17:06:04 | 显示全部楼层
谁有24口的 支持 802.1q的交换机呢?
本人现在用以1U的服务器 功率太高了 还是换交换机。!


求购支持 802.1q的 vlan机
routeros
回复

使用道具 举报

发表于 2012-5-1 17:19:21 | 显示全部楼层
routeros
回复

使用道具 举报

发表于 2012-5-1 17:21:53 | 显示全部楼层
本帖最后由 YAWPYNG 于 2012-5-1 18:06 编辑

你是八只猫吗?

CISCO WS-C2940-8TT-S

8口100M  + 一口千兆

千兆口当trunk


主要是二手便宜好用,
加上CISCO 专用软件管理方便

用CISCO 专用软件设好vlan id后 , 再去ros 的vlan 那边设定对应的vlan id 即可.
routeros
回复

使用道具 举报

 楼主| 发表于 2012-5-2 09:55:53 | 显示全部楼层
由于isp 限制了一个mac地址只能拨一个adsl帐号,所以这里要想在单网卡拨多个adsl就需要多个MAC 。可以用vlan 桥接的形式来实现。
需要一个能划分VLAN 的交换机,下面是华为交换机的配置 1口为trunk口 vlan2-vlan16通过   2-16口
分别是VLAN2-VLAN16 这里我只做15线
15个vlan 接15个adsl

各种交换机的配置命令都不一样,我这里有的是华为的16口交换机,请根据你的交换机来配置。


<Quidway>sys
[Quidway]vlan 2
[Quidway-vlan2]port eth 0/0/2
[Quidway-vlan2]vlan 3
[Quidway-vlan3]port eth 0/0/3
[Quidway-vlan3]vlan 4
[Quidway-vlan4]port eth 0/0/4
[Quidway-vlan4]vlan 5
[Quidway-vlan5]port eth 0/0/5
[Quidway-vlan5]vlan 6
[Quidway-vlan6]port eth 0/0/6
[Quidway-vlan6]vlan 7
[Quidway-vlan7]port eth 0/0/7
[Quidway-vlan7]vlan 8
[Quidway-vlan8]port eth 0/0/8
[Quidway-vlan8]vlan 9
[Quidway-vlan9]port eth 0/0/9
[Quidway-vlan9]vlan 10
[Quidway-vlan10]port eth 0/0/10
[Quidway-vlan10]vlan 11
[Quidway-vlan11]port eth 0/0/11
[Quidway-vlan11]vlan 12
[Quidway-vlan12]port eth 0/0/12
[Quidway-vlan12]vlan 13
[Quidway-vlan13]port eth 0/0/13
[Quidway-vlan13]vlan 14
[Quidway-vlan14]port eth 0/0/14
[Quidway-vlan14]vlan 15
[Quidway-vlan15]port eth 0/0/15
[Quidway-vlan15]vlan 16
[Quidway-vlan16]port eth 0/0/16
[Quidway-vlan16]vlan 1
[Quidway-vlan1]port eth 0/0/17 to  0/0/24
[Quidway-vlan1]qu
[Quidway]int Ethernet0/0/1
[Quidway-Ethernet0/0/1]port link-type trunk
[Quidway-Ethernet0/0/1]port trunk allow-pass  vlan 2 to 16
[Quidway-Ethernet0/0/1]disp this

interface Ethernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 16
ntdp enable
ndp enable


下面是在ROS上的设置:

创建VLAN  vlan属于wan

创建桥并更改桥的mac  注意:每个桥的mac地址都要不一样,有多少个adsl 就创建多少个桥

添加桥 ports ,
桥对应vlan

添加PPPOE拨号 interfaces 属于桥

OK 这样就配置好了!
这里我只做了一线,多线重复上面的操作即可
routeros
回复

使用道具 举报

发表于 2012-5-3 23:50:37 | 显示全部楼层
我有 16口的交换机 带802.1q vlan ,包帮你设置好
routeros
回复

使用道具 举报

发表于 2012-5-5 08:16:47 | 显示全部楼层
网上买一台,可网管的交换机都支持vlan划分的.便宜的
像D-LINK什么的都有
routeros
回复

使用道具 举报

发表于 2012-5-5 08:40:00 | 显示全部楼层
outstrip 发表于 2012-5-1 17:06
谁有24口的 支持 802.1q的交换机呢?
本人现在用以1U的服务器 功率太高了 还是换交换机。!

华为 H3C CISCO 这些都可以, 我试过TP的有些机子不能对接拔ADSL,但是划VLAN放在内网做端口隔离可以对接,就他妈的拔ADSL不行,折腾了我大半天的时间!
routeros
回复

使用道具 举报

发表于 2012-5-5 08:47:05 | 显示全部楼层


User Access Verification

Password:
Cisco2960>en
Password:
Cisco2960#show running-config
Building configuration...

Current configuration : 3189 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname Cisco2960
!
enable password admin
!
no aaa new-model
system mtu routing 1500
ip subnet-zero
!
!
!
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
interface FastEthernet0/1
switchport access vlan 25
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/2
switchport access vlan 2
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/3
switchport access vlan 3
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/4
switchport access vlan 4
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/5
switchport access vlan 5
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/6
switchport access vlan 6
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/7
switchport access vlan 7
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/8
switchport access vlan 8
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/9
switchport access vlan 9
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/10
switchport access vlan 10
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/11
switchport access vlan 11
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/12
switchport access vlan 12
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/13
switchport access vlan 13
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/14
switchport access vlan 14
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/15
switchport access vlan 15
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/16
switchport access vlan 16
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/17
switchport access vlan 17
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/18
switchport access vlan 18
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/19
switchport access vlan 19
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/20
switchport access vlan 20
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/21
switchport access vlan 21
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/22
switchport access vlan 22
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/23
switchport access vlan 23
switchport mode access
spanning-tree portfast
!
interface FastEthernet0/24
switchport access vlan 24
switchport mode access
spanning-tree portfast
!
interface GigabitEthernet0/1
switchport mode trunk
!
interface GigabitEthernet0/2
switchport mode trunk
!
interface Vlan1
ip address 192.168.49.254 255.255.255.0
no ip route-cache
!
ip default-gateway 192.168.49.1
ip http server
no cdp run
!
control-plane
!
!
line con 0
line vty 0 4
password admin
login
line vty 5 15
password admin
login
!
end

Cisco2960#

这是思科的配置,你也可以参考一下
routeros
回复

使用道具 举报

发表于 2012-5-5 08:50:45 | 显示全部楼层
[admin@MikroTik] > ip firewall mangle print
Flags: X - disabled, I - invalid, D - dynamic
1 X ;;; input
     chain=input action=mark-connection new-connection-mark=pppoe-out1
     passthrough=yes in-interface=pppoe-out1

2 X chain=input action=mark-connection new-connection-mark=pppoe-out2
     passthrough=yes in-interface=pppoe-out2

3 X chain=input action=mark-connection new-connection-mark=pppoe-out3
     passthrough=yes in-interface=pppoe-out3

4 X chain=input action=mark-connection new-connection-mark=pppoe-out4
     passthrough=yes in-interface=pppoe-out4

5 X chain=input action=mark-connection new-connection-mark=pppoe-out5
     passthrough=yes in-interface=pppoe-out5

6 X ;;; out
     chain=output action=mark-routing new-routing-mark=pcc1 passthrough=yes
     connection-mark=pppoe-out1

7 X chain=output action=mark-routing new-routing-mark=pcc2 passthrough=yes
     connection-mark=pppoe-out2

8 X chain=output action=mark-routing new-routing-mark=pcc3 passthrough=yes
     connection-mark=pppoe-out3

9 X chain=output action=mark-routing new-routing-mark=pcc4 passthrough=yes
     connection-mark=pppoe-out4

10 X chain=output action=mark-routing new-routing-mark=pcc5 passthrough=yes
     connection-mark=pppoe-out5

11 X ;;; mark conn
     chain=prerouting action=mark-connection new-connection-mark=pcc1
     passthrough=yes src-address-list=mark_route
     per-connection-classifier=both-addresses-and-ports:5/0

12 X chain=prerouting action=mark-connection new-connection-mark=pcc2
     passthrough=yes src-address-list=mark_route
     per-connection-classifier=both-addresses-and-ports:5/1

13 X chain=prerouting action=mark-connection new-connection-mark=pcc3
     passthrough=yes src-address-list=mark_route
     per-connection-classifier=both-addresses-and-ports:5/2

14 X chain=prerouting action=mark-connection new-connection-mark=pcc4
     passthrough=yes src-address-list=mark_route
     per-connection-classifier=both-addresses-and-ports:5/3

15 X chain=prerouting action=mark-connection new-connection-mark=pcc5
     passthrough=yes src-address-list=mark_route
     per-connection-classifier=both-addresses-and-ports:5/4

16 X ;;; mkrk route
     chain=prerouting action=mark-routing new-routing-mark=pcc1
     passthrough=yes src-address-list=mark_route connection-mark=pcc1

17 X chain=prerouting action=mark-routing new-routing-mark=pcc2 passthrough=ye>
     src-address-list=mark_route connection-mark=pcc2

18 X chain=prerouting action=mark-routing new-routing-mark=pcc3 passthrough=ye>
     src-address-list=mark_route connection-mark=pcc3

19 X chain=prerouting action=mark-routing new-routing-mark=pcc4 passthrough=ye>
     src-address-list=mark_route connection-mark=pcc4

20 X chain=prerouting action=mark-routing new-routing-mark=pcc5 passthrough=ye>
     src-address-list=mark_route connection-mark=pcc5



这是PCC的设置,你可以参考一下
routeros
回复

使用道具 举报

发表于 2012-5-5 08:52:08 | 显示全部楼层
ROS做这些我都整合到一个脚本里面了!直接全用命令来一下子全生成了!
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-11-24 07:42 , Processed in 0.064685 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表