Oracle® Switch ES2-72 和 Oracle Switch ES2-64 配置指南

退出打印视图

更新时间: 2015 年 4 月
 
 

配置初始设置

  1. 验证交换机与主机之间的连接。

    请参见Switching Feature Topology

    1. 对于 SEFOS-1 交换机,请验证以下连接:
      • 端口 1-4-连接到 SEFOS-2 交换机上的端口 1-4

      • 端口 25-连接到主机服务器 A(IP 地址 20.0.0.10)

      • 端口 26-连接到主机服务器 B(IP 地址 20.0.0.20)

    2. 对于 SEFOS-2 交换机,请验证端口 25 是否已连接到主机服务器 C(IP 地址 20.0.0.30)。
  2. 连接到 SEFOS。

    请参见Connect to SEFOS

  3. 创建一个 VLAN 并将主机端口添加为该 VLAN 的成员端口。
    SEFOS-1# configure terminal
    SEFOS-1(config)# vlan 101
    SEFOS-1(config-vlan)# ports xl-ethernet 0/25-26 untagged xl-ethernet 0/25-26
    SEFOS-1(config-vlan)# vlan active
    SEFOS-1(config-vlan)# exit
    
  4. 启动连接了主机的接口。
    SEFOS-1# configure terminal
    SEFOS-1(config)# interface range xl-ethernet 0/25-26
    SEFOS-1(config-if-range)# switchport pvid 101
    SEFOS-1(config-if-range)# no shutdown
    SEFOS-1(config-if-range)# exit
    
  5. 在 VLAN 101 上配置 IP 地址并启动该接口。
    SEFOS-1# configure terminal
    SEFOS-1(config-int)# interface vlan 101
    SEFOS-1(config-int)# ip address 20.0.0.1 255.0.0.0
    SEFOS-1(config-int)# no shutdown
    SEFOS-1(config-int)# exit
    
  6. 验证 VLAN 101 接口是否已启动。
    SEFOS-1# show ip interface
    vlan1 is down, line protocol is down
    Internet Address is 10.0.0.1/8
    Broadcast Address 10.255.255.255
    vlan101 is up, line protocol is up
    Internet Address is 20.0.0.1/8
    Broadcast Address 10.255.255.255
    
  7. 检查接口的状态。
    SEFOS-1# show interface status
    Port Status Duplex Speed Negotiation Capability
    ---- ------ ------ ----- ----------- ----------
    Xl0/1 not connected Full 10 Gbps Auto-Negotiation Auto-MDIX on
    Xl0/2 not connected Full 10 Gbps Auto-Negotiation Auto-MDIX on
    ...
    Xl0/25 connected Full 10 Gbps Auto-Negotiation Auto-MDIX on
    Xl0/26 connected Full 10 Gbps Auto-Negotiation Auto-MDIX on
    ...
     
    SEFOS-1# show interface description
    Interface Status Protocol
    --------- ------ --------
    Xl0/1 down down
    Xl0/2 down down
    ...
    Xl0/25 up up
    Xl0/26 up up
    ...
    vlan101 up up
    
  8. 从 SEFOS-1 交换机对主机 A (20.0.0.10) 执行 ping 命令。

    ping 应当成功。

  9. 检查 MAC 地址条目。
    SEFOS-1# show mac-address-table
    Vlan    Mac Address         Type     Ports
    ----    -----------         ----     -----
    101     00:14:4f:6c:7d:e9   Learnt   Xl0/25
    Total Mac Addresses displayed: 1
    

    注 - 显示的 MAC 地址必须与主机 A 的 MAC 地址相对应。
  10. 在 SEFOS-2 交换机上重复Step 3Step 5 来启动必需的端口并将 VLAN 101 的 IP 地址配置为 20.0.0.2。
  11. 配置拓扑。

    要配置拓扑,所有端口都应当已启动。如果它们没有启动,请使用 no shutdown 命令启动端口。

    SEFOS-1# configure terminal
    SEFOS-1(config)# interface range xl 0/1-2
    SEFOS-1(config-if-range)# switchport pvid 101
    SEFOS-1(config-if-range)# no shutdown
    SEFOS-1(config-if-range)# end
    

    在两台交换机中,确保以下接口已启动:0/1、0/2、0/25、0/26。

相关信息