Re: udev/network question

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

 



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@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@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@xxxxx ]# cat /etc/sysconfig/network-scripts/ifcfg-net4
# Intel Corporation 80003ES2LAN Gigabit Ethernet Controller (Copper)
DEVICE=net4
BOOTPROTO=static
...other stuff the same...

[root@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@xxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxx
> 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
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
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




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux