- 论坛徽章:
- 0
|
三.设置IP 地址
ipAddrShow – 显示交换机的IP设置
sw2:admin> ipAddrShow
Ethernet IP Address: 10.77.77.77
Ethernet Subnetmask: 255.255.255.0
Fibre Channel IP Address: none
Fibre Channel Subnetmask: none
Gateway Address: 0.0.0.0
ipAddrSet – 为交换机设置IP地址
sw2:admin> ipAddrSet
Ethernet IP Address [10.77.77.77]: 192.168.30.107
Ethernet Subnetmask [0.0.0.0]: 255.255.255.0
Fibre Channel IP Address [none]:
Fibre Channel Subnetmask [none]:
Gateway Address [172.17.1.1]:
Set IP address now? [y = set now, n = next reboot]: y
此外,ifmodeshow可以用于检查交换机以太网络端口工作模式;
Fab_E1_1:admin> ifmodeshow "eth0"
Link mode: negotiated 100baseTx-FD, link ok
ifmodeset可以用于设置交换机以太网络端口工作模式
步骤如下:
ifmodeset "eth0"
Are you sure you really want to do this? (yes, y, no, n): [no] yes
Proceed with caution.
Auto-negotiate (yes, y, no, n): [no] yes
Advertise 100 Mbps / Full Duplex (yes, y, no, n): [yes] yes
Advertise 100 Mbps / Half Duplex (yes, y, no, n): [yes] no
Advertise 10 Mbps / Full Duplex (yes, y, no, n): [yes] no
Advertise 10 Mbps / Half Duplex (yes, y, no, n): [yes] no
Committing configuration...done.
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/17749/showart_121558.html |
|