[CentOS] /etc/sysconfig/network HOSTNAME settings

2016-09-04 Thread Walter H.
Hello, I found different ways to define the hostname ... this HOSTNAME="host.domain.tld" or this: HOSTNAME="host" DOMAIN="domain.tld" what is the correct way? Thanks, Walter ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailma

[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 HWADDR=00:50:56:01:00:

[CentOS] /etc/sysconfig/network HOSTNAME settings

2016-09-04 Thread Walter H.
Hello, I found different ways to define the hostname ... this HOSTNAME="host.domain.tld" or this: HOSTNAME="host" DOMAIN="domain.tld" what is the correct way? Thanks, Walter ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailm

[CentOS] How do I install uwsgi + python 3?

2016-09-04 Thread Yuri Kanivetsky
Hi, >From what I can see, epel doesn't have python 3's pip. But when I install python35u (ius) and uwsgi-python-plugin3, uwsgi's python doesn't seem to find virtual env's packages. When I install python34u (ius) and uwsgi-plugin-python3, I get a conflict. Am I doing anything wrong? Regards, Yuri

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

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 not

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 the

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 t

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 i

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 addi

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 done. you have to specify >> >>

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 thes

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, GATEWAY2,

Re: [CentOS] /etc/sysconfig/network HOSTNAME settings

2016-09-04 Thread Liam O'Toole
On 2016-09-03, Walter H. wrote: > Hello, > > I found different ways to define the hostname ... > > this > HOSTNAME=3D"host.domain.tld" > > or this: > HOSTNAME=3D"host" > DOMAIN=3D"domain.tld" > > what is the correct way? > > Thanks, > Walter In the case of RHEL 5 and 6 the former way is recommend

Re: [CentOS] /etc/sysconfig/network HOSTNAME settings

2016-09-04 Thread Frank Cox
On Sun, 4 Sep 2016 19:57:01 +0100 Liam O'Toole wrote: > In the case of RHEL 5 and 6 the former way is recommended[1]. I don't > know whether that advice has changed with RHEL 7. hostnamectl set-hostname whateveryourhostnameshouldbe -- MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilleth