Joakim Ziegler
2013-Mar-24 02:27 UTC
[CentOS] How to make a network interface come up automatically on link up?
I have a recently installed Mellanox VPI interface in my server. This is an InfiniBand interface, which, through the use of adapters, can also do 10GbE over fiber. I have one of the adapter's two ports configured for 10GbE in this way, with a point to point link to a Mac workstation with a Myricom 10GbE card. I've configured this interface on the Linux box (eth2) using /etc/sysconfig/network-scripts/ifcfg-eth2 , setting its IP address, MTU, subnet, etc. Everything seems to work fine, with a single exception. If I reboot the Mac on the other end, causing the link state of the fiber interface to bounce, the network interface on the Linux box doesn't come back up when the link comes back up. That is, ifconfig shows it as having the link up, but it doesn't do the equivalent of "ifup eth2" when the link comes back, so it doesn't get an IP, the routing table doesn't get updated, etc. So, my question is, how can I make CentOS automatically configure this interface when the link comes back up? It's a bit annoying having to log in and do ifup eth2 every time... -- Joakim Ziegler - Supervisor de postproducci?n - Terminal joakim at terminalmx.com - 044 55 2971 8514 - 5264 0864
Earl Ramirez
2013-Mar-24 03:13 UTC
[CentOS] How to make a network interface come up automatically on link up?
On Sat, 2013-03-23 at 20:27 -0600, Joakim Ziegler wrote:> I have a recently installed Mellanox VPI interface in my server. This is > an InfiniBand interface, which, through the use of adapters, can also do > 10GbE over fiber. I have one of the adapter's two ports configured for > 10GbE in this way, with a point to point link to a Mac workstation with > a Myricom 10GbE card. > > I've configured this interface on the Linux box (eth2) using > /etc/sysconfig/network-scripts/ifcfg-eth2 , setting its IP address, MTU, > subnet, etc. > > Everything seems to work fine, with a single exception. If I reboot the > Mac on the other end, causing the link state of the fiber interface to > bounce, the network interface on the Linux box doesn't come back up when > the link comes back up. That is, ifconfig shows it as having the link > up, but it doesn't do the equivalent of "ifup eth2" when the link comes > back, so it doesn't get an IP, the routing table doesn't get updated, etc. > > So, my question is, how can I make CentOS automatically configure this > interface when the link comes back up? It's a bit annoying having to log > in and do ifup eth2 every time... >Joakim, Do you have ONBOOT=yes in the /etc/sysconfig/network-scripts/ifcfg-eth2? -- Kind Regards Earl Ramirez GPG Key: http://trinipino.com/PublicKey.asc -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 316 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20130324/f3886255/attachment-0001.sig>
Banyan He
2013-Mar-24 03:41 UTC
[CentOS] How to make a network interface come up automatically on link up?
what do you find in dmesg and /var/log/messages? The system should bring it up automatically. If not, you should get an error for the prompts. ------------ Banyan He Blog: http://www.rootong.com Email: banyan at rootong.com On 3/24/2013 10:27 AM, Joakim Ziegler wrote:> I have a recently installed Mellanox VPI interface in my server. This is > an InfiniBand interface, which, through the use of adapters, can also do > 10GbE over fiber. I have one of the adapter's two ports configured for > 10GbE in this way, with a point to point link to a Mac workstation with > a Myricom 10GbE card. > > I've configured this interface on the Linux box (eth2) using > /etc/sysconfig/network-scripts/ifcfg-eth2 , setting its IP address, MTU, > subnet, etc. > > Everything seems to work fine, with a single exception. If I reboot the > Mac on the other end, causing the link state of the fiber interface to > bounce, the network interface on the Linux box doesn't come back up when > the link comes back up. That is, ifconfig shows it as having the link > up, but it doesn't do the equivalent of "ifup eth2" when the link comes > back, so it doesn't get an IP, the routing table doesn't get updated, etc. > > So, my question is, how can I make CentOS automatically configure this > interface when the link comes back up? It's a bit annoying having to log > in and do ifup eth2 every time... >
Joakim Ziegler
2013-Mar-24 05:16 UTC
[CentOS] How to make a network interface come up automatically on link up?
I do have ONBOOT=yes, yes. It comes up on boot (if there's a link), it just doesn't come up after the link goes down and comes back up. -- Joakim Ziegler - Supervisor de postproducci?n - Terminal joakim at terminalmx.com - 044 55 2971 8514 - 5264 0864 On 23/03/13 21:13, Earl Ramirez wrote:> On Sat, 2013-03-23 at 20:27 -0600, Joakim Ziegler wrote: >> I have a recently installed Mellanox VPI interface in my server. This is >> an InfiniBand interface, which, through the use of adapters, can also do >> 10GbE over fiber. I have one of the adapter's two ports configured for >> 10GbE in this way, with a point to point link to a Mac workstation with >> a Myricom 10GbE card. >> >> I've configured this interface on the Linux box (eth2) using >> /etc/sysconfig/network-scripts/ifcfg-eth2 , setting its IP address, MTU, >> subnet, etc. >> >> Everything seems to work fine, with a single exception. If I reboot the >> Mac on the other end, causing the link state of the fiber interface to >> bounce, the network interface on the Linux box doesn't come back up when >> the link comes back up. That is, ifconfig shows it as having the link >> up, but it doesn't do the equivalent of "ifup eth2" when the link comes >> back, so it doesn't get an IP, the routing table doesn't get updated, etc. >> >> So, my question is, how can I make CentOS automatically configure this >> interface when the link comes back up? It's a bit annoying having to log >> in and do ifup eth2 every time... >> > > Joakim, > > Do you have ONBOOT=yes in the /etc/sysconfig/network-scripts/ifcfg-eth2? > > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >
Nux!
2013-Mar-24 10:01 UTC
[CentOS] How to make a network interface come up automatically on link up?
On 24.03.2013 02:27, Joakim Ziegler wrote:> I have a recently installed Mellanox VPI interface in my server. This > is > an InfiniBand interface, which, through the use of adapters, can also > do > 10GbE over fiber. I have one of the adapter's two ports configured for > 10GbE in this way, with a point to point link to a Mac workstation > with > a Myricom 10GbE card. > > I've configured this interface on the Linux box (eth2) using > /etc/sysconfig/network-scripts/ifcfg-eth2 , setting its IP address, > MTU, > subnet, etc.Try adding HOTPLUG=yes in the cfg file. -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro
Eero Volotinen
2013-Mar-26 04:44 UTC
[CentOS] How to make a network interface come up automatically on link up?
2013/3/26 Eero Volotinen <eero.volotinen at iki.fi>:> 2013/3/26 Joakim Ziegler <joakim at terminalmx.com>: >> Well, /etc/sysconfig/network-scripts/ifcfg-eth2 looks like this: >> >> DEVICE=eth2 >> BOOTPROTO=none >> ONBOOT=yes >> NETWORK=10.10.0.0 >> NETMASK=255.255.0.0 >> IPADDR=10.10.0.1 >> USERCTL=no >> MTU=9000 >> HOTPLUG=yes >> NM_MANAGED=no > > try changing BOOTPROTO=static, instead of none.some documentation also like NM_CONTROLLED=no : http://wiki.centos.org/FAQ/CentOS6 -- Eero