SOLVED - Re: 2nd IP address on an interface

Robert Moskowitz rgm at htt-consult.com
Fri Aug 29 00:42:34 UTC 2014


It is all ifconfigs fault   :)

I just assumed that in f20 it was still good enough until F21.....

# cat /etc/udev/rules.d/70-persistent-net.rules

# Added by 'write_udev' for detected device 'eth0'.
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", 
ATTR{address}=="02:67:15:00:01:78", NAME="eth0"

# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
BOOTPROTO=none
ONBOOT="yes"
TYPE="Ethernet"
NAME="System eth0"
MACADDR=02:67:15:00:01:63
MTU=1500
DNS1=208.83.67.148
GATEWAY="208.83.67.161"
IPADDR="208.83.67.163"
IPADDR2="208.83.67.164"
NETMASK="255.255.255.240"
NETMASK2="255.255.255.240"
HOSTNAME="miredo.htt-consult.com"
IPV6INIT="yes"
DNS2=2607:f4b8:3:0:9254:5400:0:148


# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
group default
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
     inet 127.0.0.1/8 scope host lo
     inet6 ::1/128 scope host
        valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
state UP group default qlen 1000
     link/ether 02:67:15:00:01:63 brd ff:ff:ff:ff:ff:ff
     inet 208.83.67.163/28 brd 208.83.67.175 scope global eth0
     inet 208.83.67.164/28 brd 208.83.67.175 scope global secondary eth0
     inet6 fe80::67:15ff:fe00:163/64 scope link
        valid_lft forever preferred_lft forever


On 08/28/2014 07:37 PM, Tom Horsley wrote:
> On Fri, 29 Aug 2014 07:20:18 +0800
> Ed Greshko wrote:
>
>> You may be getting confused by using "ifconfig".....
> Yea, I forgot that bit, my aliases didn't show up
> in ifconfig, but I could ping them from another
> computer on the same network.



More information about the users mailing list