Resetting network devices between ifconfig level and desktop level

Aaron Gray aaronngray.lists at gmail.com
Thu May 5 17:45:53 UTC 2011


On 5 May 2011 16:03, Bill Nottingham <notting at redhat.com> wrote:
> Aaron Gray (aaronngray.lists at gmail.com) said:
>> On 2 May 2011 22:13, Dan Williams <dcbw at redhat.com> wrote:
>> > On Sat, 2011-04-30 at 17:54 +0100, Aaron Gray wrote:
>> >> Hope no one minds me writing to the devel list but I got no reply on user list.
>> >>
>> >> I have got inconsistent eth devices between what Fedora Gnome Desktop
>> >> is telling me and what ifconfig is telling me and what 'service
>> >> network restart' is telling me.
>> >
>> > Can you be more specific about what your problem is?  What's the
>> > disagreement, and what commands are not returning what you expect?
>>
>> $ ifconfig
>> eth0      Link encap:Ethernet  HWaddr 00:26:18:E4:99:77
>>           inet addr:192.168.0.7  Bcast:192.168.0.255  Mask:255.255.255.0
>>           inet6 addr: fe80::226:18ff:fee4:9977/64 Scope:Link
>>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>           RX packets:34 errors:0 dropped:0 overruns:0 frame:0
>>           TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
>>           collisions:0 txqueuelen:1000
>>           RX bytes:11039 (10.7 KiB)  TX bytes:34609 (33.7 KiB)
>>           Interrupt:27 Base address:0x2000
>>
>> eth1      Link encap:Ethernet  HWaddr 00:24:01:ED:05:35
>>           UP 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:1000
>>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
>>           Interrupt:17 Base address:0xec00
>>
>> System>Preferences>Network Connections is giving eth0 and eth2
>>
>> The Gnome Desktop connections icon in the top right of the screen is
>> giving eth1 disconnected and eth2 working.
>>
>> I would like to look into this, but don't know where to start.
>
> Starting point would be the contents of
> /etc/sysconfig/network-scripts/ifcfg-*, and

$ cat ifcfg-eth0
# nVidia Corporation MCP61 Ethernet
DEVICE=eth0
ONBOOT=no
TYPE=Ethernet
BOOTPROTO=dhcp
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
IPV6INIT=no
USERCTL=no
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
HWADDR=00:1B:B9:D0:B4:6E
PEERDNS=yes
PEERROUTES=yes
DHCP_CLIENT_ID=192.168.1.1
~~~

this is listing DHCP_CLIENT_ID as 192.168.1.1 when it should be
192.168.0.1 and there is no file for eth1

> /etc/udev/rules.d/70-persistent-net.rules.

# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x1186:0x1300 (8139too)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:24:01:ed:05:35", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth1"

# PCI device 0x10de:0x0760 (forcedeth) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:26:18:e4:99:77", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth0"

Aaron


More information about the devel mailing list