<---- template headericclude ----->
Where is the file "70-persistent-net.rules"?
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2004
    Posts
    1,410
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Where is the file "70-persistent-net.rules"?

    Hi all,

    Fedora 18 desktop 64bit
    Virtualizer - Oracle VirtualBox

    Where is the file "70-persistent-net.rules"?

    Just cloned a Fedora 18 client. I can't set static IP which is supposed caused by changing the name of the device p2p1.

    $ sudo ifconfig
    Code:
    [sudo] password for satimis: 
    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            loop  txqueuelen 0  (Local Loopback)
            RX packets 10  bytes 780 (780.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 10  bytes 780 (780.0 B)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    p2p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 192.168.0.10  netmask 255.255.255.0  broadcast 192.168.0.255
            inet6 fe80::a00:27ff:feeb:881b  prefixlen 64  scopeid 0x20<link>
            ether 08:00:27:eb:88:1b  txqueuelen 1000  (Ethernet)
            RX packets 16878  bytes 19997640 (19.0 MiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 13432  bytes 1664105 (1.5 MiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    192.168.0.10 is automatically assigned. Static IP set is 192.168.0.117. Please help. TIA

    B.R.
    satimis

  2. #2
    Join Date
    Jul 2009
    Location
    England, UK
    Posts
    969
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where is the file "70-persistent-net.rules"?

    The file you refer to should be in /etc/udev/rules.d/ I think.

    But I've always set a static IP using the Network Manager interface in the past. Have you tried the command nm-connection-editor?

  3. #3
    Join Date
    Jan 2010
    Posts
    8,205
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)

    Re: Where is the file "70-persistent-net.rules"?

    They are making it more and more difficult to work around this idea of persistent devices (which isn't all that persistent, different names with and without biosdevname, and so on.) The persistent-net.rules file is no longer installed by default.

    At any rate, I've found the simplest way around it is to run rpm -e biosdevname then add net.ifnames=0 to /etc/default/grub command line (the line beginning with linux, that ends with rhgb quiet). This should make the persistent-net.rules file unnecessary. (I also edit the /etc/sysconfig/network-scripts/ifcfg-whatever file, but that doesn't seem to affect things one way or the other.)

    Also, if not using NetworkManager, I'm now, in Fedora, finding it necessary to install system-config-network-tui and use it. Also, in /etc/sysconfig/network-scripts/ifcfg-whatever, I add the line NM_CONTROLLED="no", remove NetworkManager, (or at least disable it with systemctl disable NetworkManager.service and enable network with systemctl enable network (at which point, it will give a message that this is actually handled by chkconfig as RH is pushing NetworkManager, but will still work for the moment.

  4. #4
    Join Date
    Jul 2004
    Posts
    1,410
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Where is the file "70-persistent-net.rules"?

    Quote Originally Posted by marriedto51
    The file you refer to should be in /etc/udev/rules.d/ I think.

    But I've always set a static IP using the Network Manager interface in the past. Have you tried the command nm-connection-editor?
    Hi,

    The file "70-persistent-net.rules" is NOT there.

    $ ls /etc/udev/rules.d/
    60-vboxadd.rules

    This is my first time running;

    $ nm-connection-editor
    Code:
    ** (nm-connection-editor:2881): WARNING **: Invalid setting IPv4 Settings: addresses
    
    ** (nm-connection-editor:2881): WARNING **: Invalid setting IPv4 Settings: addresses
    Network Connections
    Ethernet
    Wired connection 1 1 minute ago
    System p2p1 9 hours ago
    p2p1 9 hours

    highlight "Wired connection 1 -> Edit

    IPv4 Settings
    Method [Automatic (DHCP) address only]
    change it to [Manual]
    Addresses
    Address 192.168.0.117
    Netmask 255.255.255.0
    Gateway 192.168.0.1

    DNS servers xxx.xxx.xxx.xxx
    Search domains [blank]
    DHCP client ID [blank]
    [check] Require IPv4 addressing for this connection to complete

    IPv6 Settings
    Method [Automatic]
    unaltered.

    -> Save
    -> Close

    Reboot

    $ sudo ifconfig
    Code:
    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            loop  txqueuelen 0  (Local Loopback)
            RX packets 520  bytes 45160 (44.1 KiB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 520  bytes 45160 (44.1 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    p2p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 192.168.0.117  netmask 255.255.255.0  broadcast 192.168.0.255
            inet6 fe80::a00:27ff:feeb:881b  prefixlen 64  scopeid 0x20<link>
            ether 08:00:27:eb:88:1b  txqueuelen 1000  (Ethernet)
            RX packets 2  bytes 120 (120.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 28  bytes 4164 (4.0 KiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    Static IP set. Thanks

    Rgds
    satimis

Similar Threads

  1. Replies: 1
    Last Post: 21st November 2011, 04:09 AM
  2. "window rules" compiz plugin not working
    By nt4cats in forum Using Fedora
    Replies: 2
    Last Post: 21st February 2009, 03:38 PM
  3. Trying to "net ads join -U Administrator@TEST.LOCAL"
    By mazalona in forum Servers & Networking
    Replies: 1
    Last Post: 5th November 2006, 07:21 PM
  4. Replies: 0
    Last Post: 23rd May 2005, 04:59 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]