Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd, 2017 please sign up again. Thanks!

wifi and ethernet default names, dhcp lease, search command in grub

Discussion in 'Linux Networking' started by sb2017, May 5, 2017.

  1. sb2017

    sb2017 New Member

    Joined:
    May 5, 2017
    Messages:
    4
    Likes Received:
    1
    Hello Everyone,

    I am new to Linux and I have a series of questions about my HP Laptop. I will be really grateful for your valuable feedback.

    First question:

    I cannot change the name of my interfaces permanently. The default name of my interfaces are:
    wlp13s0 for with,
    enp7s0 for ethernet.

    I am using the commands below to change the names :

    ip link set wlp13s0 name wlan0
    ip link set enp7s0 name eth0

    However the change is not persistant and when I reboot the names are changed back to wlp13s0 (for with) and enp7s0 (for ethernet).
    I formatted the whole disk and tried installing Windows 10 and Fedora Linux, however the interfaces names are the same wlp13s0 and enp7s0. How to change these default names? Will bios update can be of any help? How can I check?

    Second question:


    (Log in to hide this advertisement)


    With all three OS I tried, by default my laptop ip address is : 192.168.43.70.

    I am using my mobile as wifi hotspot to connect to my laptop. My mobile gets dynamic ip. I am assuming I should get a dynamic ip in my laptop as well. However the ip address is static.

    After grep I found a file in /var/lib/NetworkManager/dhclient-6612cfce-15e9-4112-8970-19fcb40d1d48-wlp13s0.lease.

    Here this ip address is mentioned, I tried commenting all the lines of this file, however the comments got removed.

    How do I make my Laptop ip dynamic?

    Third question:

    Before boot if I edit the grub menu "ubuntu", I get a line :

    search --no-floppy --fs-uuid --set=root --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 e6211905-a1ec-4bc4-aa09-c87f3e08cdf9

    I am yet to understand most part of this code , however I didnot understand the syntex "baremetal=ahci0,gpt2".

    With the command
    rfkill list , I get in these options:

    1. phy0: Wireless LAN
    Soft blocked : yes
    Hard blocked : no
    2. hci0 : Bluetooth
    Soft blocked : yes
    Hard blocked : no

    Is hci0 and ahci0 related ? Is grub searching for a file through bluetooth device?

    Finall even if I edit and remove everything except > linux and initramfs in grub it is not persistant. Is there anything to do with grub.cfg?

    I understand I have asked a lot of question in one post , however I wanted to give adequate information about my laptop and if it has anything to do with misuse of data and privacy. I will be thankful for your valuable feedback and if this is of any help to anyone.

    Yours sincerely,
    sb
     
  2. Rob

    Rob Administrator
    Staff Member

    Joined:
    Oct 27, 2011
    Messages:
    363
    Likes Received:
    812
  3. sb2017

    sb2017 New Member

    Joined:
    May 5, 2017
    Messages:
    4
    Likes Received:
    1

    I tried locating the file “70-persistant-net.rules” file, however the directory

    /etc/udev/rules.d/ is empty.

    I also tried with the links below, which gives information about udev.

    http://www.debianhelp.co.uk/udev.htm

    https://wiki.debian.org/NetworkConfiguration

    https://www.linux.com/news/udev-introduction-device-management-modern-linux-system

    I could find files named: n1, n2 and n3 in /run/udev/data/ .
    In n3 listing for ethernet interface (name:enp7s0) is given.

    The contents of n2 file is as below. The changes I make here are not persistent after reboot.


    I:12128186
    E: DEVPATH=/devices/pci0000:00/0000:00:1c.5/0000:0d:00.0/net/wlp13s0
    E:SUBSYSTEM=net
    E:
    DEVTYPE=wlan
    E:INTERFACE=wlp13s0
    E:IFINDEX=3
    E:USEC_INITIALIZED=12128186
    E:ID_NET_NAME_MAC=wlx707781c03517
    E:ID_OUI_FROM_DATABASE=Hon Hai Precision Ind. Co.,Ltd.
    E:ID_NET_NAME_PATH=wlp13s0
    E:ID_BUS=pci
    E:ID_VENDOR_ID=0x10ec
    E:ID_MODEL_ID=0xb723
    E:ID_PCI_CLASS_FROM_DATABASE=Network controller
    E:ID_PCI_SUBCLASS_FROM_DATABASE=Network controller
    E:ID_VENDOR_FROM_DATABASE=Realtek Semiconductor Co., Ltd.
    E:ID_MODEL_FROM_DATABASE=RTL8723BE PCIe Wireless Network Adapter
    E:ID_MM_CANDIDATE=1
    E:ID_PATH=pci-0000:0d:00.0
    E:ID_PATH_TAG=pci-0000_0d_00_0
    E:ID_NET_DRIVER=rtl8723be
    E:ID_NET_LINK_FILE=/lib/systemd/network/99-default.link
    E:ID_NET_NAME=wlp13s0
    E:SYSTEMD_ALIAS=/sys/subsystem/net/devices/wlp13s0 /sys/subsystem/net/devices/wlp13s0
    E:TAGS=:systemd:
    G:systemd​

    I tried with this folder below:

    /devices/pci0000:00/0000:00:1c.5/0000:0d:00.0/net/wlp13s0/

    checked almost all files and directories, however there is nothing where ‘wlp13s0’ can be renamed.


    Yours sincerely,
    sb
     
    #3 sb2017, May 6, 2017
    Last edited: May 7, 2017
  4. VP9KS

    VP9KS Well-Known Member

    Joined:
    Apr 29, 2017
    Messages:
    327
    Likes Received:
    310
    Happy Birthday, mate!!:D:D:eek:
     
  5. sb2017

    sb2017 New Member

    Joined:
    May 5, 2017
    Messages:
    4
    Likes Received:
    1
    Thank you so much for your wishes:D.

    With regards,
    sb
     
  6. sb2017

    sb2017 New Member

    Joined:
    May 5, 2017
    Messages:
    4
    Likes Received:
    1
    VP9KS likes this.

Share This Page