Software Archive
Read-only legacy content
17060 Discussions

Gateway not set for mic0 when br0 is dhcp

Brian_Andrus
Beginner
609 Views

So I cannot seem to get the default route set for my mic cards except by manually doing so after logging on to them.

I have a system with 2 MIC cards in it.
The cards are bridged with eth0 on the host into br0
br0 is set to get its IP via dhcp
The mic cards have static IPs

basically:

/usr/sbin/micctrl --addbridge=br0 --type=external --ip=dhcp --netbits=16 --mtu=9000
/usr/sbin/micctrl --network=static --bridge=br0 --ip=10.1.100.35 --gw=10.1.1.1 mic0

This puts the line in my mic0 card:
Network class=StaticBridge bridge=br0 micip=10.1.100.35 modhost=yes modcard=yes gw=10.1.1.1
 

However, when I boot the MIC cards, they have no default gateway.
I noticed that /opt/intel/mic/filesystem/mic1/etc/sysconfig/network/ifcfg-mic0 has a line for "GATEWAY=dhcp" and I changed that to "GATEWAY=10.1.1.1" with no luck.

[root@node01-mic0 ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.1.0.0        *               255.255.0.0     U     0      0        0 mic0

 

Is there a way to set the default gateway within the configs so I don't have to run "route add default gw 10.1.1.1" on each card?

Brian Andrus
ITACS/Research Computing
Naval Postgraduate School

 

0 Kudos
3 Replies
Frances_R_Intel
Employee
609 Views

I don't know the immediate answer. I will look into it but I am a little confused - not hard for me, since I have always considered network configuration to be a bit of an obscure art. The bridge gets it's IP address via dhcp and the coprocessor has a static address of 10.1.100.35 but who is 10.1.1.1 and why is he the gateway for the coprocessor rather than the gateway IP address returned by dhcp?

0 Kudos
Brian_Andrus
Beginner
609 Views

10.1.1.1 is the gateway that br0 receives from the DHCP server.

 

0 Kudos
Frances_R_Intel
Employee
609 Views

I just noticed that the file you changed was /opt/intel/mic/filesystem/mic1/etc/sysconfig/network/ifcfg-mic0. The files in /opt/intel/mic/filesystem are maintained for compatibility with some older tools. They are not the files used to boot the coprocessor. Can you look in /var/mpss/mic0/etc/sysconfig/network/ifcfg-mic0 (and the same for the mic1 files) and change the gateway value in there? I suspect that will address your problem for the present. If it does, let me know and I can request that the developers look at making micctrl use the explicitly specified gateway in cases like this.

0 Kudos
Reply