Purpose
SKY-9240 BMC MAC 2 should be detected as USB Ethernet device under x86 OS. After BMC activation or BMC reset, the behavior of USB Ethernet device is like "replugging" the device. Therefore, the USB Ethernet IP will be clear.
Target Audience
All users who are using Advantech SKY-9K series products.
Example
The following commands are running under Centos 7.5.
- Check USB Ethernet name under x86. (like "enp0s20f0u4u4" in the following example)
# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 74:fe:48:25:13:12 brd ff:ff:ff:ff:ff:ff
inet 172.17.5.65/23 brd 172.17.5.255 scope global dynamic enp3s0
valid_lft 7737sec preferred_lft 7737sec
3: enp96s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 74:fe:48:25:13:10 brd ff:ff:ff:ff:ff:ff
4: enp96s0f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 74:fe:48:25:13:11 brd ff:ff:ff:ff:ff:ff
6: enp0s20f0u4u4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
link/ether 2e:7a:90:2b:9b:b3 brd ff:ff:ff:ff:ff:ff
- Modify the Network settings as below under OS. (run command "vim" to edit the script and press "Esc" and ":wq" to exit the script)
# vim /etc/sysconfig/network-scripts/ifcfg-enp0s20f0u4u4
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=statis
IPADDR=192.168.2.100 >> static IP address
NETMASK=255.255.255.0 >> netmask address
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s20f0u4u4
UUID=a32dd3bc-d185-478a-98da-e8a11382edba
DEVICE=enp0s20f0u4u4
ONBOOT=yes
:wq
- Run the following command to restore the static IP.
# ifdown ifcfg-enp0s20f0u4u4 && ifup ifcfg-enp0s20f0u4u4
- Check the IP again
# ip a |grep enp0s20f0u4u4
6: enp0s20f0u4u4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
inet 192.168.2.100/24 brd 192.168.2.255 scope global enp0s20f0u4u4
Comments
0 comments
Please sign in to leave a comment.