设定多个VLAN

在1台SWX2200上,将端口分组、禁止组间通信的功能。这时对服务器、路由器等需要和所有组进行通信的终端所连接的端口,通过使其从属于所有组,而可以实现通信。在多个VLAN功能中、组不同也能分配到相同的网络地址。

先对如下结构举例说明。

  • 端口1~4:可与服务器或路由器等所有组进行通信
  • 端口5~8:组1(可通过组1内的通信以及服务器或路由器进行通信)
  • 端口9~16:组2 (可通过组2内的通信以及服务器或路由器进行通信)
  • 端口17~24:组3 (可通过组3内的通信以及服务器或路由器进行通信)

RTX1200的设定例(指定SWX2200的MAC地址时)

用switch select指令对SWX2200的MAC地址进行指定,选择设定的SWX2200时的设定例。

可以提取以下的设定(Config)

LAN接口的设定
(使用LAN1端口)

ip lan1 address 192.168.100.1/24

DHCP的设定

dhcp service server
dhcp server rfc2131 compliant except remain-silent
dhcp scope 1 192.168.100.2-192.168.100.191/24

控制交换机的设定

switch control use lan1 on

SWX2200的设定

switch select(SWX2200的MAC地址)
switch control function set vlan-multiple-use on
switch control function set vlan-multiple 1 1 join
switch control function set vlan-multiple 1 2 join
switch control function set vlan-multiple 1 3 join
switch control function set vlan-multiple 2 1 join
switch control function set vlan-multiple 2 2 join
switch control function set vlan-multiple 2 3 join
switch control function set vlan-multiple 3 1 join
switch control function set vlan-multiple 3 2 join
switch control function set vlan-multiple 3 3 join
switch control function set vlan-multiple 4 1 join
switch control function set vlan-multiple 4 2 join
switch control function set vlan-multiple 4 3 join
switch control function set vlan-multiple 5 1 join
switch control function set vlan-multiple 6 1 join
switch control function set vlan-multiple 7 1 join
switch control function set vlan-multiple 8 1 join
switch control function set vlan-multiple 9 2 join
switch control function set vlan-multiple 10 2 join
switch control function set vlan-multiple 11 2 join
switch control function set vlan-multiple 12 2 join
switch control function set vlan-multiple 13 2 join
switch control function set vlan-multiple 14 2 join
switch control function set vlan-multiple 15 2 join
switch control function set vlan-multiple 16 2 join
switch control function set vlan-multiple 17 3 join
switch control function set vlan-multiple 18 3 join
switch control function set vlan-multiple 19 3 join
switch control function set vlan-multiple 20 3 join
switch control function set vlan-multiple 21 3 join
switch control function set vlan-multiple 22 3 join
switch control function set vlan-multiple 23 3 join
switch control function set vlan-multiple 24 3 join

RTX1200的设定例(指定连接SWX2200时)

用switch select指令对指定连接了SWX2200时的设定例。
将SWX2200连接到RTX1200的LAN1端口时的设定例如下所示

可以提取以下的设定(Config)

LAN接口的设定
(使用LAN1端口)

ip lan1 address 192.168.100.1/24

DHCP的设定

dhcp service server
dhcp server rfc2131 compliant except remain-silent
dhcp scope 1 192.168.100.2-192.168.100.191/24

控制交换机的设定

switch control use lan1 on

SWX2200的设定

switch select lan1:1
switch control function set vlan-multiple-use on
switch control function set vlan-multiple 1 1 join
switch control function set vlan-multiple 1 2 join
switch control function set vlan-multiple 1 3 join
switch control function set vlan-multiple 2 1 join
switch control function set vlan-multiple 2 2 join
switch control function set vlan-multiple 2 3 join
switch control function set vlan-multiple 3 1 join
switch control function set vlan-multiple 3 2 join
switch control function set vlan-multiple 3 3 join
switch control function set vlan-multiple 4 1 join
switch control function set vlan-multiple 4 2 join
switch control function set vlan-multiple 4 3 join
switch control function set vlan-multiple 5 1 join
switch control function set vlan-multiple 6 1 join
switch control function set vlan-multiple 7 1 join
switch control function set vlan-multiple 8 1 join
switch control function set vlan-multiple 9 2 join
switch control function set vlan-multiple 10 2 join
switch control function set vlan-multiple 11 2 join
switch control function set vlan-multiple 12 2 join
switch control function set vlan-multiple 13 2 join
switch control function set vlan-multiple 14 2 join
switch control function set vlan-multiple 15 2 join
switch control function set vlan-multiple 16 2 join
switch control function set vlan-multiple 17 3 join
switch control function set vlan-multiple 18 3 join
switch control function set vlan-multiple 19 3 join
switch control function set vlan-multiple 20 3 join
switch control function set vlan-multiple 21 3 join
switch control function set vlan-multiple 22 3 join
switch control function set vlan-multiple 23 3 join
switch control function set vlan-multiple 24 3 join

返回顶部Return to Top

网络相关产品

服务支持

事业绍介