FS#25427 - [netcfg] Make IPv4 ADDR Variable an Array for IP Aliasing?
Attached to Project:
Arch Linux
Opened by David J. Haines (dhaines) - Saturday, 06 August 2011, 19:27 GMT
Last edited by Eric Belanger (Snowman) - Tuesday, 30 April 2013, 01:09 GMT
Opened by David J. Haines (dhaines) - Saturday, 06 August 2011, 19:27 GMT
Last edited by Eric Belanger (Snowman) - Tuesday, 30 April 2013, 01:09 GMT
|
Details
Netcfg is capable of handling IP aliasing by means of the
POST_UP and PRE_DOWN (see my solution here:
https://bbs.archlinux.org/viewtopic.php?pid=951573#p951573), but there's an obvious analogy to the multiple addresses
that the ADDR6 variable can handle to be made. After all,
IPv6's multiple addresses really are the same thing as
old-school IPv4 IP aliasing.
Is there any way to make the ADDR variable act like the ADDR6 variable to make the ugliness of the POST_UP and PRE_DOWN solution unnecessary? I'd be happy to help with this any way that I can. |
This task depends upon
Closed by Eric Belanger (Snowman)
Tuesday, 30 April 2013, 01:09 GMT
Reason for closing: Won't implement
Additional comments about closing: netcfg has been moved to AUR
Tuesday, 30 April 2013, 01:09 GMT
Reason for closing: Won't implement
Additional comments about closing: netcfg has been moved to AUR
ip addr add 1.2.3.4/24 dev eth0 label eth0:5
so ifconfig will show:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.55.232 netmask 255.255.254.0 broadcast 192.168.55.255
ether 4c:00:10:3b:54:bc txqueuelen 1000 (Ethernet)
RX packets 3124966 bytes 1732496119 (1.6 GiB)
RX errors 0 dropped 237 overruns 0 frame 0
TX packets 670856 bytes 75511943 (72.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth0:5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 1.2.3.4 netmask 255.255.255.0 broadcast 0.0.0.0
ether 4c:00:10:3b:54:bc txqueuelen 1000 (Ethernet)