diff --git a/xCAT-nbroot2/ifup b/xCAT-nbroot2/ifup new file mode 100755 index 000000000..e5d7491e5 --- /dev/null +++ b/xCAT-nbroot2/ifup @@ -0,0 +1,4 @@ +if [ "${1%?}" = "usb" ]; then + /sbin/setupimmnic +fi +exit 0 diff --git a/xCAT-nbroot2/install b/xCAT-nbroot2/install index a3a49a9d5..d26402c10 100755 --- a/xCAT-nbroot2/install +++ b/xCAT-nbroot2/install @@ -609,6 +609,7 @@ inst "$moddir/rsyslog.conf" "/etc/rsyslog.conf" inst "$moddir/99-imm.rules" "/etc/udev/rules.d/99-imm.rules" inst "$moddir/98-mlx.rules" "/etc/udev/rules.d/98-mlx.rules" inst "$moddir/setupimmnic" "/sbin/setupimmnic" +inst "$moddir/ifup" "/bin/ifup" inst "$moddir/loadmlxeth" "/sbin/loadmlxeth" dracut_install /sbin/rpc.statd /usr/sbin/sm-notify /etc/netconfig rpcbind /etc/host.conf /usr/sbin/rpc.idmapd dracut_install ps free find #debug diff --git a/xCAT-nbroot2/setupimmnic b/xCAT-nbroot2/setupimmnic index a8783e98c..6253727fb 100755 --- a/xCAT-nbroot2/setupimmnic +++ b/xCAT-nbroot2/setupimmnic @@ -1,3 +1,4 @@ #!/bin/sh /sbin/ip link set usb0 up -/sbin/ip addr add dev usb0 169.254.95.120/16 +/sbin/ip addr add dev usb0 169.254.95.120/24 +/sbin/ip route add 169.254.95.120/24 dev usb0