Re: [CentOS] How to make a network interface come up automatically on link up?

2013-04-24 Thread Joakim Ziegler
This seems really dirty. :) Also, I actually have to take it down and back up to make it work currently. But I will try the recipe I got soon and see if that fixes it. -- Joakim Ziegler - Supervisor de postproducción - Terminal joa...@terminalmx.com - 044 55 2971 8514 - 5264 0864

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-04-24 Thread Svavar Örn Eysteinsson
You can create these two files which will be executed every time interface comes up goes down. /sbin/ifup-local /sbin/ifdown-local mark them as executable. The Device name will be passed as argument. example, /sbin/ifup-local eth0. use case or if statements for interface parsing in the

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-04-24 Thread Gordon Messmer
On 04/22/2013 10:30 AM, Joakim Ziegler wrote: I've tried various combinations of HOTPLUG=yes and no, and MANAGED=yes and no, then someone asked me if this was really not managed, so I posted the dmesg output above. I'm pretty sure HOTPLUG is only used when the interface ITSELF is attached to

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-04-23 Thread John Doe
From: Joakim Ziegler joa...@terminalmx.com As I'd mentioned before, the problem isn't that the interface doesn't come up on boot, it does, but since it's a point to point interface, when I reboot the computer on the other end, it goes down and doesn't come back up automatically. That is,

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-04-23 Thread Carl T. Miller
On 04/23/2013 05:25 AM, John Doe wrote: From: Joakim Ziegler joa...@terminalmx.com As I'd mentioned before, the problem isn't that the interface doesn't come up on boot, it does, but since it's a point to point interface, when I reboot the computer on the other end, it goes down and doesn't

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-04-22 Thread Joakim Ziegler
On 25/03/13 18:09, Joakim Ziegler wrote: On 24/03/13 4:01, Nux! wrote: 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

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-04-22 Thread Nux!
On 22.04.2013 18:11, Joakim Ziegler wrote: Hello, I'm just trying to get back to this, since no one has answered my questions... Is this really a very difficult thing to accomplish? Hi, Can you make a short list of what you tried and did not work? I've already lost count. Lucian -- Sent

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-04-22 Thread Joakim Ziegler
I've tried various combinations of HOTPLUG=yes and no, and MANAGED=yes and no, then someone asked me if this was really not managed, so I posted the dmesg output above. -- Joakim Ziegler - Supervisor de postproducción - Terminal joa...@terminalmx.com - 044 55 2971 8514 - 5264 0864

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-04-22 Thread Eero Volotinen
http://www.putorius.net/2012/10/how-to-configure-static-ip-address-in.html 2013/4/22 Joakim Ziegler joa...@terminalmx.com I've tried various combinations of HOTPLUG=yes and no, and MANAGED=yes and no, then someone asked me if this was really not managed, so I posted the dmesg output above.

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-04-22 Thread Joakim Ziegler
Do I need to disable NetworkManager for everything to make this work? As I'd mentioned before, the problem isn't that the interface doesn't come up on boot, it does, but since it's a point to point interface, when I reboot the computer on the other end, it goes down and doesn't come back up

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-04-22 Thread m . roth
Joakim Ziegler wrote: Do I need to disable NetworkManager for everything to make this work? As I'd mentioned before, the problem isn't that the interface doesn't come up on boot, it does, but since it's a point to point interface, when I reboot the computer on the other end, it goes down and

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-04-22 Thread Joakim Ziegler
It's not an InfiniBand connection per se. It's a Mellanox VPI card, which has IB ports that can be configured to be 10GbE, through an adapter and fiber transciever. I've currently got one of its two ports set up to be 10GbE, and it shows up as eth2. The other port on the card, which is

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-03-25 Thread Joakim Ziegler
On 24/03/13 4:01, Nux! wrote: 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

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-03-25 Thread Earl Ramirez
On Mon, 2013-03-25 at 18:09 -0600, Joakim Ziegler wrote: On 24/03/13 4:01, Nux! wrote: 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

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-03-25 Thread Eero Volotinen
Mar 25 11:38:09 resolve02 kernel: mlx4_en: eth2: Link Up Mar 25 11:38:09 resolve02 NetworkManager[4429]: info (eth2): carrier now ON (device state 2) Mar 25 11:38:09 resolve02 NetworkManager[4429]: info (eth2): device state change: 2 - 3 (reason 40) Is the network manager REALLY disabled on

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-03-25 Thread Joakim Ziegler
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 -- Joakim Ziegler - Supervisor de postproducción - Terminal joa...@terminalmx.com -

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-03-25 Thread Eero Volotinen
2013/3/26 Joakim Ziegler joa...@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,

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-03-25 Thread Eero Volotinen
2013/3/26 Eero Volotinen eero.voloti...@iki.fi: 2013/3/26 Joakim Ziegler joa...@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

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-03-24 Thread Eero Volotinen
Try to disable network manager on that interface On Mar 24, 2013 7:17 AM, Joakim Ziegler joa...@terminalmx.com wrote: 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

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-03-24 Thread Joakim Ziegler
How do I do that? I've not used network manager to set it up, I just made the ifcfg-eth2 file from scratch. -- Joakim Ziegler - Supervisor de postproducción - Terminal joa...@terminalmx.com - 044 55 2971 8514 - 5264 0864 On 24/03/13 0:46, Eero Volotinen wrote: Try to disable

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-03-24 Thread Eero Volotinen
NM_MANAGED=no on ifcfg-ethX script.. and onboot=YES On Mar 24, 2013 9:04 AM, Joakim Ziegler joa...@terminalmx.com wrote: How do I do that? I've not used network manager to set it up, I just made the ifcfg-eth2 file from scratch. -- Joakim Ziegler - Supervisor de postproducción - Terminal

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-03-24 Thread Nux!
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

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-03-24 Thread Patrick Lists
On 24-03-13 08:03, Joakim Ziegler wrote: How do I do that? I've not used network manager to set it up, I just made the ifcfg-eth2 file from scratch. Besides the other two suggestions you may also want to set a proper SELinux label on the ifcfg-eth2 file with something like: /sbin/restorecon -v

[CentOS] How to make a network interface come up automatically on link up?

2013-03-23 Thread Joakim Ziegler
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

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-03-23 Thread Banyan He
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: ban...@rootong.com On 3/24/2013 10:27 AM, Joakim Ziegler wrote: I have a recently installed

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-03-23 Thread Earl Ramirez
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

Re: [CentOS] How to make a network interface come up automatically on link up?

2013-03-23 Thread Joakim Ziegler
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 joa...@terminalmx.com - 044 55 2971 8514 - 5264 0864 On 23/03/13 21:13, Earl Ramirez