sony1208 发表于 2012-5-1 13:09:32

ROS 3.30如何扩展WAN口?

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

不过有8条ADSL 请问ROS 如何扩展WAN口 具体步骤 谢谢大家

坐井观天 发表于 2012-5-1 13:15:50

用802.1Q的VLAN交换机。一WAN口拨八个号.

sony1208 发表于 2012-5-1 13:39:43

坐井观天 发表于 2012-5-1 13:15 static/image/common/back.gif
用802.1Q的VLAN交换机。一WAN口拨八个号.

ROS上怎么设置呢?
都需要设置什么

outstrip 发表于 2012-5-1 17:06:04

谁有24口的 支持 802.1q的交换机呢?
本人现在用以1U的服务器 功率太高了 还是换交换机。!


求购支持 802.1q的 vlan机

greney 发表于 2012-5-1 17:19:21

具体看这里
http://bbs.mikrotik.com.cn/thread-8559-1-1.html

YAWPYNG 发表于 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 即可.

sony1208 发表于 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
vlan 2
port eth 0/0/2
vlan 3
port eth 0/0/3
vlan 4
port eth 0/0/4
vlan 5
port eth 0/0/5
vlan 6
port eth 0/0/6
vlan 7
port eth 0/0/7
vlan 8
port eth 0/0/8
vlan 9
port eth 0/0/9
vlan 10
port eth 0/0/10
vlan 11
port eth 0/0/11
vlan 12
port eth 0/0/12
vlan 13
port eth 0/0/13
vlan 14
port eth 0/0/14
vlan 15
port eth 0/0/15
vlan 16
port eth 0/0/16
vlan 1
port eth 0/0/17 to0/0/24
qu
int Ethernet0/0/1
port link-type trunk
port trunk allow-passvlan 2 to 16
disp this

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


下面是在ROS上的设置:

创建VLANvlan属于wan

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

添加桥 ports ,
桥对应vlan

添加PPPOE拨号 interfaces 属于桥

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

2980315 发表于 2012-5-3 23:50:37

我有 16口的交换机 带802.1q vlan ,包帮你设置好

helingjun 发表于 2012-5-5 08:16:47

网上买一台,可网管的交换机都支持vlan划分的.便宜的
像D-LINK什么的都有

FreeBSD_shell 发表于 2012-5-5 08:40:00

outstrip 发表于 2012-5-1 17:06 static/image/common/back.gif
谁有24口的 支持 802.1q的交换机呢?
本人现在用以1U的服务器 功率太高了 还是换交换机。!



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

FreeBSD_shell 发表于 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#

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

FreeBSD_shell 发表于 2012-5-5 08:50:45

> 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的设置,你可以参考一下

FreeBSD_shell 发表于 2012-5-5 08:52:08

ROS做这些我都整合到一个脚本里面了!直接全用命令来一下子全生成了!
页: [1]
查看完整版本: ROS 3.30如何扩展WAN口?