如何设置Netgear 7000系列三层交换机的 VLAN 路由

来源:百度文库 编辑:神马文学网 时间:2024/03/29 16:31:15

如何设置Netgear 7000系列三层交换机的 VLAN 路由    

设置Netgear 7000系列三层交换机

(FSM7326P,FSM7328S,FSM7352S,GSM7312,GSM7324)的VLAN路由

设置 NETGEARGSM7312交换机Vlan路由

设置目标:

为交换机的802.1QVLAN设置VLAN路由,为已经建立的VLAN2-7每个VLAN创建一个接口,设置IP地址为192.168.2.1-192.168.7.1使每个网段的用户可以通过三层交换机互相通讯,设置交换机默认路由到FR328S路由器,VLAN1作为管理VLAN不设路由接口。

配置步骤:

  1. 使用9针串口设置线连接GSM7324交换机,进入CLI配置界面,使用(GSM7312)# Clear Config命令恢复出厂设置。
  2. 然后使用命令(GSM7312)#Reload ; 系统提示是否保存现有配置(选择YES)。然后系统重新启动。
  3. 配置GSM7312交换机管理IP地址为192.168.0.238/24,配置完毕后保存。
  4. 连接配置计算机的网线到GSM7312的端口10;
  5. 打开IE浏览器,在URL处输入http://192.168.0.238/,进入交换机配置管理界面。
  6. 在交换机左边选择 Routing>VLAN Routing>Config 页面创建VLAN2的路由接口:在VLAN ID栏填入2,然后点击Create 创建。

创建完成后在Slot.Port里会显示这个VLAN的路由接口号3.1。

对应的CLI命令行参数是:

(GSM7312) (Vlan)#vlan routing 2

Interface 3/1 created for VLAN 2.

7. 重复第6步,为VLAN3-7创建路由接口3.2-3.6。

    对应命令行参数:

    (GSM7312) (Vlan)#vlan routing 3

    Interface 3/2 created for VLAN 3.

    (GSM7312) (Vlan)#vlan routing 4

    Interface 3/3 created for VLAN 4.

    (GSM7312) (Vlan)#vlan routing 5

    Interface 3/4 created for VLAN 5.

    (GSM7312) (Vlan)#vlan routing 6

    Interface 3/5 created for VLAN 6.

    (GSM7312) (Vlan)#vlan routing 7

    Interface 3/6 created for VLAN 7.

    8. 为Vlan2的路由接口设置IP地址192.168.2.1。

    在Routing>IP>IP Interface Configuration页面,如图:

    a)System Routing Mode选择为Enable;

    命令行格式为:(GSM7312) (Config)#ip routing

    b)Slot.Port选择3.1,IP Address输入192.168.2.1,Subnet Mask输入255.255.255.0

    命令行格式为:

    (GSM7312) (Config)#interface 3/1

    (GSM7312) (Interface 3/1)#ip address 192.168.2.1 255.255.255.0

    c)Routing Mode选择为Enable.

    命令行格式:(GSM7312) (Interface 3/1)#routing

    其余可以保留默认,点击Submit提交更改后如图:

    9. 重复第8步,为VLAN3-7的路由接口3.2-3.6分别简历IP地址。

    命令行格式如下:

    (GSM7312) (Config)#interface 3/2

    (GSM7312) (Interface 3/2)#ip address 192.168.3.1 255.255.255.0

    (GSM7312) (Interface 3/2)#routing

    (GSM7312) (Interface 3/2)#exit

    (GSM7312) (Config)#interface 3/3

    (GSM7312) (Interface 3/3)#ip address 192.168.4.1 255.255.255.0

    (GSM7312) (Interface 3/3)#routing

    (GSM7312) (Interface 3/3)#exit

    (GSM7312) (Config)#interface 3/4

    (GSM7312) (Interface 3/4)#ip address 192.168.5.1 255.255.255.0

    (GSM7312) (Interface 3/4)#routing

    (GSM7312) (Interface 3/4)#exit

    (GSM7312) (Config)#interface 3/5

    (GSM7312) (Interface 3/5)#ip address 192.168.6.1 255.255.255.0

    (GSM7312) (Interface 3/5)#routing

    (GSM7312) (Interface 3/5)#exit

    (GSM7312) (Config)#interface 3/6

    (GSM7312) (Interface 3/6)#ip address 192.168.7.1 255.255.255.0

    (GSM7312) (Interface 3/6)#routing

    (GSM7312) (Interface 3/6)#exit

    10. 查看VLAN对应的路由接口:

      CLI命令格式:(GSM7312) #show ip vlan

      MAC Address used by Routing VLANs:00:09:5B:A1:12:B9

      Logical

      VLAN ID    Interface IP Address Subnet Mask

      ---- ------ ----- ---- -------- ---- ---- ---- --- --- ---

          2               3/1          192.168.2.1     255.255.255.0

          3               3/2          192.168.3.1     255.255.255.0

          4               3/3          192.168.4.1     255.255.255.0

          5              3/4          192.168.5.1     255.255.255.0

          6               3/5          192.168.6.1     255.255.255.0

          7               3/6          192.168.7.1     255.255.255.0

      11. 为交换机创建默认路由,假设默认路由地址为192.168.7.254,那么需在Routing>Router>Route Entry Config页面进行创建。

        点击该页面的Create Route,在Route Type项选择Default,Next Hop IP Address输入192.168.7.254。

        命令行格式:

        (GSM7312) (Config)#ip route default 192.168.7.254

        12. 查看交换机路由表。

        点击Routing>Router>Route Table页面查看交换机路由表:

        命令行格式:

        (GSM7312) #show ip route

        Total Number of Routes......................... 7

        Network              Subnet                            Next Hop              Next Hop
        Address              Mask              Protocol          Intf              IP Address

        ----- ------- --- ---------- ----- -------- ----------- -------- -----

        0.0.0.0              0.0.0.0             Default              3/6              192.168.7.254

        192.168.2.0     255.255.255.0    Local             3/1              192.168.2.1
        192.168.3.0     255.255.255.0    Local             3/2              192.168.3.1
        192.168.4.0     255.255.255.0    Local             3/3              192.168.4.1
        192.168.5.0     255.255.255.0    Local             3/4              192.168.5.1
        192.168.6.0     255.255.255.0    Local             3/5              192.168.6.1
        192.168.7.0     255.255.255.0    Local             3/6              192.168.7.1

        13. 设置完成。(如果需要让所有网段的用户能通过默认网关上网,必须在网关这台设备添加路由)