[Wedge100BF-series] How to save a static IP for management port of OpenBMC? Follow
Purpose:
This article shows how to set a static IP on the management port and remain the configuration after rebooting OpenBMC.
Model:
- DCS800 - Wedge100BF-32X
- DCS801 - Wedge100BF-65X
- DCS802 - Wedge100BF-32QS
Procedure:
Step 1. Modify file /mnt/data/etc/rc.local
It'll create a new one automatically if there's no such file.
root@bmc:~# cd /mnt/data/etc/
root@bmc:/mnt/data/etc# ls
rc.local ssh
root@bmc:/mnt/data/etc# vi rc.local
Step 2. Modify "rc.local" as below
#Release dhcp
dhclient -r -v eth0
#Set ipv4 addr/GW
ip add add 188.188.10.1/16 dev eth0
ip route add default via 188.188.1.1
Step 3. Add execution permission for "rc.local"
root@bmc:/mnt/data/etc# chmod +x rc.local
root@bmc:/mnt/data/etc# ./rc.local
The OpenBMC will apply the "rc.local" IP address configuration for the management port when it starts up.
Comments
0 comments
Please sign in to leave a comment.