Re: [CentOS] more than one IP address on network device?

2016-09-06 Thread Gordon Messmer
On 09/03/2016 10:34 AM, Walter H. wrote: /etc/sysconfig/network-scripts/ifcfg-eth0:1 # Intel Corporation 82545EM Gigabit Ethernet Controller (Copper), Alias 1 TYPE=Ethernet DEVICE=eth0:1 ONPARENT=yes BOOTPROTO=none BROADCAST=192.168.0.255 IPADDR=192.168.0.17 NETMASK=255.255.255.0

Re: [CentOS] more than one IP address on network device?

2016-09-05 Thread Always Learning
On Mon, 2016-09-05 at 15:15 +0200, Yamaban wrote: > "ip addr show" and > "ip route show" > > should give the needed info, at least with Centos 7.x Works on C5 and C6 too. -- Regards, Paul. England, EU. England's place is in the European Union.

Re: [CentOS] more than one IP address on network device?

2016-09-05 Thread Walter H.
On 05.09.2016 15:28, Alexander Dalloz wrote: Am 05.09.2016 um 14:27 schrieb Jonathan Billings: On Sep 4, 2016, at 1:27 PM, Walter H. wrote: 'ifconfig' doesn't show these additional addresses ... This is one of the many reasons why people don’t use ‘ifconfig’

Re: [CentOS] more than one IP address on network device?

2016-09-05 Thread William A. Mahaffey III
On 09/05/16 08:56, Alexander Dalloz wrote: Am 05.09.2016 um 15:29 schrieb Kenneth Porter: --On Monday, September 05, 2016 4:15 PM +0200 Yamaban wrote: How about using the "ip" tool? Thanks. I looked at the man page and it looks like it's the Swiss army knife of Linux

Re: [CentOS] more than one IP address on network device?

2016-09-05 Thread Alexander Dalloz
Am 05.09.2016 um 15:29 schrieb Kenneth Porter: --On Monday, September 05, 2016 4:15 PM +0200 Yamaban wrote: How about using the "ip" tool? Thanks. I looked at the man page and it looks like it's the Swiss army knife of Linux networking. Lots of subcommands. I'll dig

Re: [CentOS] more than one IP address on network device?

2016-09-05 Thread Kenneth Porter
--On Monday, September 05, 2016 4:15 PM +0200 Yamaban wrote: How about using the "ip" tool? Thanks. I looked at the man page and it looks like it's the Swiss army knife of Linux networking. Lots of subcommands. I'll dig through that.

Re: [CentOS] more than one IP address on network device?

2016-09-05 Thread Alexander Dalloz
Am 05.09.2016 um 14:27 schrieb Jonathan Billings: On Sep 4, 2016, at 1:27 PM, Walter H. wrote: 'ifconfig' doesn't show these additional addresses ... This is one of the many reasons why people don’t use ‘ifconfig’ anymore. As additional information: ifconfig as

Re: [CentOS] more than one IP address on network device?

2016-09-05 Thread Kenneth Porter
--On Monday, September 05, 2016 9:27 AM -0400 Jonathan Billings wrote: This is one of the many reasons why people don't use 'ifconfig' anymore. Is there a preferred tool? Perhaps a script that will dump out the full network configuration for easy checking?

Re: [CentOS] more than one IP address on network device?

2016-09-05 Thread Jonathan Billings
On Sep 4, 2016, at 1:27 PM, Walter H. wrote: > 'ifconfig' doesn't show these additional addresses ... This is one of the many reasons why people don’t use ‘ifconfig’ anymore. -- Jonathan Billings ___

Re: [CentOS] more than one IP address on network device?

2016-09-04 Thread Ulf Volmer
On 09/04/2016 07:27 PM, Walter H. wrote: > On 04.09.2016 17:33, Ulf Volmer wrote: >> please note, that you have to specify only one GATEWAY, there can be >> only one default gateway active. > sure? > thought that IPADDR, GATEWAY, NETMASK and NETWORK must go with, > the same with IPADDR2,

Re: [CentOS] more than one IP address on network device?

2016-09-04 Thread Jon LaBadie
Valeri, not on list as it does not pertain to Linux. On Sun, Sep 04, 2016 at 10:25:23AM -0500, Valeri Galtsev wrote: > ... > > IPADDR2=192.168.1.10 > > BROADCAST2=192.168.1.255 <-- > > NETMASK2=255.255.255.0 > > NETWORK2=192.168.1.0 <-- > > GATEWAY2=192.168.1.1 <-- > > Interesting... With

Re: [CentOS] more than one IP address on network device?

2016-09-04 Thread Antonio da Silva Martins Junior
Hi, It works, but, it didn't create "virtual address" aka "eth0:0", try using "ip" command: "ip addr show dev eth0" Att., Antonio. 2016-09-04 14:27 GMT-03:00 Walter H. : > On 04.09.2016 17:33, Ulf Volmer wrote: > >> >> OK, some testing has been

Re: [CentOS] more than one IP address on network device?

2016-09-04 Thread Walter H.
On 04.09.2016 17:33, Ulf Volmer wrote: OK, some testing has been done. you have to specify IPADDR=192.168.0.10 NETMASK=255.255.255.0 NETWORK=192.168.0.0 GATEWAY=192.168.0.1 IPADDR2=192.168.2.10 NETMASK2=255.255.255.0 NETWORK2=192.168.2.0 I tried this way; but 'ifconfig' doesn't show these

Re: [CentOS] more than one IP address on network device?

2016-09-04 Thread Ulf Volmer
On 09/04/2016 05:00 PM, Ulf Volmer wrote: >> IPADDR2=192.168.1.10 >> BROADCAST2=192.168.1.255 <-- >> NETMASK2=255.255.255.0 >> NETWORK2=192.168.1.0 <-- >> GATEWAY2=192.168.1.1 <-- >> >> in case they don't match the first IP address? > > I'm not sure at this point. If you have to add a second ip

Re: [CentOS] more than one IP address on network device?

2016-09-04 Thread Valeri Galtsev
On Sun, September 4, 2016 9:40 am, Walter H. wrote: > On 04.09.2016 15:18, Ulf Volmer wrote: >> On 09/03/2016 07:34 PM, Walter H. wrote: >> >>> if I would need an additional IPv6 address I'd just add >>> IPV6ADDR_SECONDARIES="ipv6addr" >>> to this file; if I would need an additional IPv4 address

Re: [CentOS] more than one IP address on network device?

2016-09-04 Thread Ulf Volmer
On 09/04/2016 04:40 PM, Walter H. wrote: > On 04.09.2016 15:18, Ulf Volmer wrote: >> That's not true, you can add ipv4 address to the interface in the same >> way: >> >> | IPADDR2=172.17.170.101 >> | NETMASK2=255.255.255.0 >> >> There is no need to create a virtual network device. > ah ok, and

Re: [CentOS] more than one IP address on network device?

2016-09-04 Thread Walter H.
On 04.09.2016 15:18, Ulf Volmer wrote: On 09/03/2016 07:34 PM, Walter H. wrote: if I would need an additional IPv6 address I'd just add IPV6ADDR_SECONDARIES="ipv6addr" to this file; if I would need an additional IPv4 address this works only by a virtual device e.g. eth0:1 like this: That's

Re: [CentOS] more than one IP address on network device?

2016-09-04 Thread Ulf Volmer
On 09/03/2016 07:34 PM, Walter H. wrote: > if I would need an additional IPv6 address I'd just add > IPV6ADDR_SECONDARIES="ipv6addr" > to this file; if I would need an additional IPv4 address this works only > by a virtual device > e.g. eth0:1 like this: That's not true, you can add ipv4 address

[CentOS] more than one IP address on network device?

2016-09-04 Thread Walter H.
Hello /etc/sysconfig/network-scripts/ifcfg-eth0 looks like this: # Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) TYPE=Ethernet NAME=eth0 NM_CONTROLLED=no IPV4_FAILURE_FATAL=yes UUID=cc2635ff-3c14-48ba-b19a-84c5b9d36a9d ONBOOT=yes DEVICE=eth0 BOOTPROTO=none