udev/network question

Gary Artim gartim at gmail.com
Tue Sep 17 15:38:01 UTC 2013


got it working, below is what I did, I do have some alias configs on
net0 I didnt include.
Also changed any interface references in my iptables rules (not included):

[root at xxxxx ]# cat /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.
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*",
NAME="net0"

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*",
NAME="net4"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{type}=="1", KERNEL=="eth*",
NAME="net5"

[root at xxxxx ]# cat /etc/sysconfig/network-scripts/ifcfg-net0
# Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper)
DEVICE=net0
ONBOOT=yes
BOOTPROTO=static
...other stuff the same...

[root at xxxxx ]# cat /etc/sysconfig/network-scripts/ifcfg-net4
# Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper)
DEVICE=net4
BOOTPROTO=static
...other stuff the same...

[root at xxxxx]# cat /etc/sysconfig/network-scripts/ifcfg-net5
DEVICE=net5
BOOTPROTO=static
...other stuff the same...

On Mon, Sep 16, 2013 at 2:15 PM, Frantisek Hanzlik <franta at hanzlici.cz> wrote:
> Gary Artim wrote:
>> so something like:
>>
>> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
>> ATTR{address}=="xx:xx:xx:xx:xx:3c", ATTR{type}=="1", KERNEL=="eth*",
>> NAME="net0"
>
> Yes, exactly, this rule will name interface with MAC address
>  "xx:xx:xx:xx:xx:3c" as "net0"
>
>> altering any iptables rules to match....?
>
> When Your /etc/sysconfig/iptables rules had "eth0" in --in-interface/
> --out-interface parameters, then You must manually rename it to net0
> too.
>
>
> --
> users mailing list
> users at lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org


More information about the users mailing list