View previous topic :: View next topic |
Author |
Message |
DrPppr242 n00b
Joined: 04 May 2008 Posts: 7
|
Posted: Fri Feb 27, 2009 6:56 pm Post subject: Start-up virtual interfaces |
|
|
I put some virutal interfaces in my startup networking config and now they don't show up when ifconfig is run I think they're being created with the ip command. My /etc/conf.d/net looks sort of like this (IPs are changed):
# cat /etc/conf.d/net
config_eth0=( "88.85.87.80 netmask 255.255.255.128"
"88.85.87.82 netmask 255.255.255.128"
"88.85.87.88 netmask 255.255.255.128"
"88.85.87.85 netmask 255.255.255.128")
config_eth1=( "10.1.1.1 netmask 255.255.128.0"
"10.10.1.5 netmask 255.255.255.0" )
routes_eth0=( "default via 88.85.87.89" )
ip addr show lists the ip addresses but not ifconfig, is there a way to change this so ifconfig will work, and if there is, is there any reason why I wouldn't want to do that? |
|
Back to top |
|
|
smerf l33t
Joined: 06 Nov 2004 Posts: 778 Location: Polska
|
Posted: Sat Feb 28, 2009 7:31 am Post subject: |
|
|
Which one is virtual?
Maybe you meant 'subinterfaces'? _________________ Microsoft is not the answer, Microsoft is the question, the answer is no. |
|
Back to top |
|
|
Casshan n00b
Joined: 07 May 2004 Posts: 53
|
Posted: Tue Mar 03, 2009 10:19 am Post subject: |
|
|
Looks like he wanted:
eth0 88.85.87.80 netmask 255.255.255.128
eth0:1 88.85.87.82 netmask 255.255.255.128
eth0:2 88.85.87.88 netmask 255.255.255.128
eth0:3 88.85.87.85 netmask 255.255.255.128 |
|
Back to top |
|
|
gentoo_ram Guru
Joined: 25 Oct 2007 Posts: 474 Location: San Diego, California USA
|
Posted: Tue Mar 03, 2009 6:48 pm Post subject: |
|
|
My understanding is that 'ifconfig' cannot show you what you want. It doesn't have the brains to do it. Only 'ip addr show' can show you the extra IPs. This is the 'expected' behavior. |
|
Back to top |
|
|
Casshan n00b
Joined: 07 May 2004 Posts: 53
|
Posted: Fri Mar 06, 2009 12:31 am Post subject: |
|
|
On my Web Server it works fine:
wserver ~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:e0:81:76:b9:94
inet addr:x.x.x.100 Bcast:x.x.x..255 Mask:255.255.248.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1414928821 errors:5 dropped:0 overruns:0 frame:3
TX packets:243894362 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:748078882 (713.4 MiB) TX bytes:2266154917 (2.1 GiB)
Interrupt:223 Base address:0xa000
eth0:1 Link encap:Ethernet HWaddr 00:e0:81:76:b9:94
inet addr:x.x.x.95 Bcast:x.x.x.255 Mask:255.255.248.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:223 Base address:0xa000
eth0:2 Link encap:Ethernet HWaddr 00:e0:81:76:b9:94
inet addr:x.x.x. Bcast:x.x.x.255 Mask:255.255.248.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:223 Base address:0xa000
eth0:3 Link encap:Ethernet HWaddr 00:e0:81:76:b9:94
inet addr:x.x.x.83 Bcast:x.x.x.255 Mask:255.255.248.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:223 Base address:0xa000 |
|
Back to top |
|
|
|