Operating System - Linux
1823143 Members
3466 Online
109647 Solutions
New Discussion юеВ

Regarding the output of netstat -in command when virtual interface is added

 
Rajan_sa
Advisor

Regarding the output of netstat -in command when virtual interface is added

Hi ,

I am using Red Hat Linux Advanced Server release 2.1AS os with kernel 2.4.9-e.3
my problem is tht when I add virtual interface & type netstat -in I get the following output

sh-2.05# netstat -in
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0 1500 0 9597077 0 0 0 712564 0 0 0 BNRU
eth0: 1500 0 - no statistics available - BNRU
lo 16436 0 617662 0 0 0 617662 0 0 0 LRU
lo:1 16436 0 - no statistics available -


Means I cant see the stats for my virtual interface .It say no statistics available.Why is it so.

5 REPLIES 5
Asif Sharif
Honored Contributor

Re: Regarding the output of netstat -in command when virtual interface is added

HI,
Rajan, Is urs interface configured properly?

Regards,

Asif
Regards,
Asif Sharif
Rajan_sa
Advisor

Re: Regarding the output of netstat -in command when virtual interface is added

Hi Asif ,

to configure virtual interface the way I used was

ifconfig le0:1 10.0.0.1 netmask 255.255.255.0 up

& I think so it works fine with it as I can communicate on that IP address.. If there is another way to do so plz show me how to go about as I am a newbee..
bhavin asokan
Honored Contributor

Re: Regarding the output of netstat -in command when virtual interface is added

hi,

you have to give like following.
see your interface is eth0

ifconfig eth0:1 192.168.30.128 netmask 255.255.255.0 up

remove the entry lo:1 as lo is the Local Loopback.

regds,


Rajan_sa
Advisor

Re: Regarding the output of netstat -in command when virtual interface is added

Hi Bhavin
U r right but even with eth0 or lo
But as u can see with the attachment both the loopback & ethernet interface configured as virtual interface gives me the same output.
Is it a bug .Do I have any solution for it .
bhavin asokan
Honored Contributor

Re: Regarding the output of netstat -in command when virtual interface is added

see the following liink

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=102767

not the solution

regds,