Setting the IPv4 Gateway Address of the iBMC (gateway)
Function
The gateway command is used to set the IPv4 gateway address of the iBMC.
Format
ipmcset -d gateway -v <gateway>
Parameters
Parameter |
Description |
Value |
---|---|---|
gateway |
Indicates the IPv4 gateway address of the iBMC. |
An IPv4 in the xxx.xxx.xxx.xxx format. |
Usage Guidelines
After the gateway address is changed, the new gateway address takes effect immediately.
Example
# Set the gateway address of the iBMC to 192.168.0.1.
iBMC:/->ipmcset -d gateway -v 192.168.0.1 Set GATEWAY successfully.
# Query the new gateway address of the iBMC.
iBMC:/->ipmcget -d ipinfo EthGroup ID : 1 Net Mode : Manual Net Type : Dedicated IPv4 Information : IP Mode : static IP Address : 192.168.0.25 Subnet Mask : 255.255.255.0 Default Gateway : 192.168.0.1 Backup IP Address : 192.168.0.144 (Activated) Backup Subnet Mask : 255.255.255.0 (Activated) MAC Address : IPv6 Information : IPv6 Mode : dhcp IPv6 Address : Default Gateway IPv6 : Link-Local Address : fe80::218:e1ff:fec5:d866/64 VLAN Information : VLAN State : disabled VLAN ID : 1