Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Start-up virtual interfaces
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
DrPppr242
n00b
n00b


Joined: 04 May 2008
Posts: 7

PostPosted: Fri Feb 27, 2009 6:56 pm    Post subject: Start-up virtual interfaces Reply with quote

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
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Sat Feb 28, 2009 7:31 am    Post subject: Reply with quote

Which one is virtual?

Maybe you meant 'subinterfaces'?
_________________
Microsoft is not the answer, Microsoft is the question, the answer is no.
Back to top
View user's profile Send private message
Casshan
n00b
n00b


Joined: 07 May 2004
Posts: 53

PostPosted: Tue Mar 03, 2009 10:19 am    Post subject: Reply with quote

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
View user's profile Send private message
gentoo_ram
Guru
Guru


Joined: 25 Oct 2007
Posts: 474
Location: San Diego, California USA

PostPosted: Tue Mar 03, 2009 6:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Casshan
n00b
n00b


Joined: 07 May 2004
Posts: 53

PostPosted: Fri Mar 06, 2009 12:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum