[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Cannot apply network settings unless I reboot



Hi there,
I am fighting since the last couple of days with the network configuration
on my iBook running Sid: I cannot apply new settings to my network
configuration unless I reboot. I'll show you what I mean:

a) Before rebooting I deactivated all interfaces. This is right after
reboot:

vasquez:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:0A:95:BB:A3:DE
          BROADCAST MULTICAST  MTU:1500  Metric:1 RX packets:0 errors:0
          dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0
          overruns:0 carrier:0 collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:2628 (2.5 KiB) Interrupt:41 Base
          address:0xf000

vasquez:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface

vasquez:~# cat /etc/resolv.conf
# generated by NetworkManager, do not edit!

The interface is clean.

b) Now, I apply my settings (eitherway through ifconfig/route or
network-admin, the Gnome frontend):

vasquez:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:0A:95:BB:A3:DE
          inet addr:192.168.1.3  Bcast:192.168.1.7  Mask:255.255.255.248
          inet6 addr: fe80::20a:95ff:febb:a3de/64 Scope:Link UP BROADCAST
          RUNNING MULTICAST  MTU:1500  Metric:1 RX packets:0 errors:0
          dropped:0 overruns:0 frame:0 TX packets:137 errors:0 dropped:0
          overruns:0 carrier:0 collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:16130 (15.7 KiB) Interrupt:41 Base
          address:0xf000

vasquez:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface 192.168.1.0     0.0.0.0         255.255.255.248 U     0      0      
 0 eth0 0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0    
   0 eth0 

vasquez:~# cat /etc/resolv.conf
# generated by NetworkManager, do not edit! 
nameserver 208.67.222.222
nameserver 208.67.220.220

Everything looks ok, right? Now, let me ping Google and my router:

vasquez:~# ping www.google.com
ping: unknown host www.google.com
vasquez:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 
ping: sendmsg: Operation not permitted 
ping: sendmsg: Operation not permitted 
ping: sendmsg: Operation not permitted

--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2000ms

The DNS addressed are correct, they are from opendns.org.

Firewall problems, you might say:

vasquez:~# iptables -F
vasquez:~# iptables -L
Chain INPUT (policy DROP)
target     prot opt source               destination

Chain FORWARD (policy DROP)
target     prot opt source               destination

Chain OUTPUT (policy DROP)
target     prot opt source               destination

vasquez:~# ping www.google.com
ping: unknown host www.google.com

vasquez:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 
ping: sendmsg: Operation not permitted 
ping: sendmsg: Operation not permitted 
ping: sendmsg: Operation not permitted

--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2010ms

What's the matter?
I have then rebooted and the configuration is IDENTICAL, but I am posting
to the list:

vasquez:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:0A:95:BB:A3:DE
          inet addr:192.168.1.3  Bcast:192.168.1.7  Mask:255.255.255.248
          inet6 addr: fe80::20a:95ff:febb:a3de/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:176 errors:0 dropped:0 overruns:0 frame:0
          TX packets:197 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:26498 (25.8 KiB)  TX bytes:13592 (13.2 KiB)
          Interrupt:41 Base address:0xf000

vasquez:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.248 U     0      0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
vasquez:~# cat /etc/resolv.conf
# generated by NetworkManager, do not edit!





nameserver 208.67.222.222
nameserver 208.67.220.220
vasquez:~# ping www.google.com
PING www.l.google.com (64.233.161.104) 56(84) bytes of data.
64 bytes from od-in-f104.google.com (64.233.161.104): icmp_seq=1 ttl=244 time=111 ms
64 bytes from od-in-f104.google.com (64.233.161.104): icmp_seq=2 ttl=244 time=112 ms

--- www.l.google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 111.928/112.060/112.193/0.360 ms

c) Sometimes I find my eth0 configured like this:

vasquez:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:0A:95:BB:A3:DE
          inet addr:169.254.206.130  Bcast:169.254.255.255 
          Mask:255.255.0.0 inet6 addr: fe80::20a:95ff:febb:a3de/64
          Scope:Link UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 RX
          packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:137
          errors:0 dropped:0 overruns:0 carrier:0 collisions:0
          txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:16130 (15.7 KiB) Interrupt:41 Base
          address:0xf000

vasquez:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface 169.254.0.0     0.0.0.0         255.255.0.0     U     0      0      
 0 eth0 

vasquez:~# cat /etc/resolv.conf
# generated by NetworkManager, do not edit!

WTF? What is that IP address?

Thanks to anyone who could give me advice on this, I am really going nuts.
Btw, happy new year everyone :)


-- 
Best Regards, Jack
Linux user #264449
Powered by Debian PPC



Reply to: