From: "Paweł Staszewski" <pstaszewski@itcare.pl>
To: Linux Network Development list <netdev@vger.kernel.org>
Subject: Problem with talking to the kernel and iproute2/ifconfig
Date: Thu, 25 Mar 2010 17:00:35 +0100 [thread overview]
Message-ID: <4BAB88A3.9070702@itcare.pl> (raw)
Hello
I have strange problem with kernel 2.6.33.1
I have script with 6267 ip's
cat gateways.conf | grep 'addr add' | wc -l
6267
and when i want to commit this interfaces by command:
ip -batch gateways.conf
I have only 680 ip interfaces
ip a | grep inet | grep ' 10.' | wc -l
680
I test this on kernels 2.6.29.1 and 2.6.30.1 and all was OK.
on kernel 2.6.29.1
ip -batch gateways.conf
ip a | grep inet | grep ' 10.' | wc -l
6267
on kernel 2.6.30.1
ip -batch gateways.conf
ip a | grep inet | grep ' 10.' | wc -l
6267
And also weird thing is that on kernel 2.6.33.1
ip addr ls dev vlan0100
158: vlan0100@eth2: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noqueue
state DOWN qlen 100
link/ether 00:30:48:67:fd:2e brd ff:ff:ff:ff:ff:ff
the same machine - the same interface but ifconfig use to list ip's
ifconfig vlan0100
vlan0100 Link encap:Ethernet HWaddr 00:30:48:67:fd:2e
inet addr:10.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.248
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
The same machine - with the same script that loads gateways but on
kernel 2.6.29.1
ip a ls dev vlan0100
8: vlan0100@eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc htb
state UP qlen 100
link/ether 00:30:48:d3:33:d6 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.1/29 brd 10.0.0.7 scope global vlan0100:1
inet 10.0.0.25/29 brd 10.0.0.31 scope global vlan0100:2
inet 10.0.0.49/29 brd 10.0.0.55 scope global vlan0100:3
inet 10.0.0.121/29 brd 10.0.0.127 scope global vlan0100:4
inet 10.0.0.129/29 brd 10.0.0.135 scope global vlan0100:5
inet 10.0.0.153/29 brd 10.0.0.159 scope global vlan0100:6
Bests Regards
Paweł
next reply other threads:[~2010-03-25 16:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-25 16:00 Paweł Staszewski [this message]
2010-03-25 17:31 ` Problem with talking to the kernel and iproute2/ifconfig Patrick McHardy
2010-03-25 17:52 ` Paweł Staszewski
2010-03-26 16:42 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BAB88A3.9070702@itcare.pl \
--to=pstaszewski@itcare.pl \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).