[SOLVED] Currents rc.inet1.conf does not allow creation of "ip alias' ie: eth0:1
by babydr from LinuxQuestions.org on (#59HBF)
Hello All , Having just needed to create a aliased interface on my new install of slackware64-current-install-Linux-5.4.69-dvd , Which I Burned 20201004
The rc.inet1.conf does not allow creation of "ip alias' ie: eth0:1
with ...
# Config information for eth0:3:
IFNAME[1]="eth0:1"
IPADDR[1]="192.168.253.2"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
I have done quite a bit of searching & noticed that the ethx:y ie: aliased interfaces are passe .
But NO WHERE have I seen an example of creating a configuration that does something simular .
!!!
!!! Well While waiting for the device to finish its updates I did again , 'man rc.inet1.conf' and FINALLY Noticed the "IPALIASES[#]=" section of the man page . !!!
!!!
so now the section reads ...
# Config information for eth0:3:
IFNAME[1]="eth0:1"
IPADDR[1]="199.33.245.1"
NETMASK[1]="255.255.255.0"
IPALIASES[1]="192.168.253.2/24"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
Which indeed gives me the below ...
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 199.33.245.1 netmask 255.255.255.0 broadcast 199.33.245.255
ether xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
RX packets 55 bytes 8009 (7.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 48 bytes 7591 (7.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0:0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.253.2 netmask 255.255.255.0 broadcast 0.0.0.0
ether xx:xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
# ip -d addr
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 60 maxmtu 9200 numtxqueues 1 numrxqueues 1 gso_max_size 64000 gso_max_segs 64
inet 199.33.245.1/24 brd 199.33.245.255 scope global eth0
valid_lft forever preferred_lft forever
inet 192.168.253.2/24 scope global eth0:0
valid_lft forever preferred_lft forever
Now there will be something to search on for those that finally migrate to -current .
So I'll post this & immediatly mark it as Closed/SOLVED .
My Tags: "ip alias", "virtual interface", "rc.inet1.conf"


The rc.inet1.conf does not allow creation of "ip alias' ie: eth0:1
with ...
# Config information for eth0:3:
IFNAME[1]="eth0:1"
IPADDR[1]="192.168.253.2"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
I have done quite a bit of searching & noticed that the ethx:y ie: aliased interfaces are passe .
But NO WHERE have I seen an example of creating a configuration that does something simular .
!!!
!!! Well While waiting for the device to finish its updates I did again , 'man rc.inet1.conf' and FINALLY Noticed the "IPALIASES[#]=" section of the man page . !!!
!!!
so now the section reads ...
# Config information for eth0:3:
IFNAME[1]="eth0:1"
IPADDR[1]="199.33.245.1"
NETMASK[1]="255.255.255.0"
IPALIASES[1]="192.168.253.2/24"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
Which indeed gives me the below ...
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 199.33.245.1 netmask 255.255.255.0 broadcast 199.33.245.255
ether xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
RX packets 55 bytes 8009 (7.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 48 bytes 7591 (7.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0:0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.253.2 netmask 255.255.255.0 broadcast 0.0.0.0
ether xx:xx:xx:xx:xx:xx txqueuelen 1000 (Ethernet)
# ip -d addr
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 60 maxmtu 9200 numtxqueues 1 numrxqueues 1 gso_max_size 64000 gso_max_segs 64
inet 199.33.245.1/24 brd 199.33.245.255 scope global eth0
valid_lft forever preferred_lft forever
inet 192.168.253.2/24 scope global eth0:0
valid_lft forever preferred_lft forever
Now there will be something to search on for those that finally migrate to -current .
So I'll post this & immediatly mark it as Closed/SOLVED .
My Tags: "ip alias", "virtual interface", "rc.inet1.conf"