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

退出打印视图

更新时间: 2015 年 4 月
 
 

为接口配置 IP 地址

以下任务介绍了如何配置用于发送和接收数据包的 IP 地址。

  1. 连接到 SEFOS。

    请参见Connect to SEFOS

  2. 进入全局配置模式。
    SEFOS-1# configure terminal
    
  3. 进入接口配置模式。
    SEFOS-1(config)# interface vlan 1
    
  4. 关闭 VLAN 接口。

    注 -  必须先关闭接口,然后再为该接口配置 IP 地址。
    SEFOS-1(config-if)# shutdown
    
  5. 配置 IP 地址和子网掩码。
    SEFOS-1(config-if)# ip address 12.0.0.1 255.0.0.0
    
  6. 打开 VLAN 接口。
    SEFOS-1(config-if)# no shutdown
    
  7. 退出接口配置模式。
    SEFOS-1(config)# end
    
  8. 查看所配置的接口 IP 地址。
    SEFOS-1# show ip interface
     
    vlan1 is up, line protocol is up
    Internet Address is 12.0.0.1/8
    Broadcast Address  12.255.255.255
    

相关信息