In Linux, how do I view the MAC address of the NIC before the network is configured? Use the dmesg and grep commands as follows: [plain] viewplaincopy [root @ localhost ~] # Dmesg | grepeth n
In Linux, how do I view the MAC address of the NIC before the network is configured?
Use the dmesg and grep commands as follows:
[Plain]View plaincopy
[Root @ localhost ~] # Dmesg | grep eth
E1000 :0:01. 0: eth0: (PCI: 66 MHz: 32-bit) 00: 0c: 29: 5b: f7: c2
Because the ifconfig command cannot view the NIC status, there are five ways to check the NIC status and whether the NIC is connected to HowtocheckphysicalNetworkLinkStatusonLinux (RHEL/Centos: http://linuxsupporttips.wordpress.com/2011/08/01/how-to-check-physical-network-l because the ifconfig command can not see some of the NIC status, the following five ways to view the NIC status, whether to connect to the network
How to check physical Network Link Status on Linux (RHEL/Centos)
Original art
LayerUsing different drivers of the network card, the corresponding driver layer code is not the same, here is an example of e1000 NIC. E1000_xmit_frame is the primary entry function for this layer, which uses the ring queue for packet management, which is responsible for maintaining the ring queue by two pointers. Execute the ethtool command, we can query the network Port drive layer ring Queue Length:
Linux # ethtool-g Eth1
Ring Parame
Check the boot information for any eth0 messages.[Email protected] ~]# DMESG | Grep-in eth1688:[1.850428] e1000 0000:02:01.0 eth0: (pci:66mhz:32-bit) 00:0c:29:41:57:0b1689:[1.850433] e1000 000 0:02:01.0 Eth0:intel (R) pro/1000 Network ConnectionThe discovery was changed from interface eth0 to eno167777363, change the name of the network card-changed from eno16777736 to Eth0[[email protected] ~]# vim/etc/de
Nic eth0. if the service network restart is not recognized for a port, this prompt is sometimes returned (Serivce Network Status reads the ETC/sysconfig/network-script/ifcfg-* file)
Shutting down loopback interface: [OK]Bringing up loopback interface: [OK]Bringing up interface eth0: Error: no suitable device found: no device found for connection 'System eth0 '.[Failed]Use ifconfig eth0 up to prompt eth0: Unknown interface: no such device
When the network is started, it will go to the configurati
(I) Network Interface① Naming rulesThe Linux kernel specifies a different prefix for the interface name based on the interface type. After the prefix, a number is assigned to each interface from scratch.For example:All Ethernet interfaces start with ETH. eth0, eth1, and eth2 indicate the first, second, and third Ethernet cards respectively.② Display Nic configuration informationOnly active NICs are displayed.IfconfigDisplay All interfaces (network interfaces)Ifconfig-OrIP Link(Ii) Driver selecti
After solaris 10 u10 is installed in vmware 9, although the nic and its type have been specified for solaris In the virtual machine configuration, only lo0 can be seen in the solaris system, no desired e1000g0 found.
The solution is as follows:
1. Open Solaris 10.vmxand find the following content:
Ethernet0.present = "TRUE"Ethernet0.connectionType = "nat"Ethernet0.virtualDev = "e1000"Ethernet0.wakeOnPcktRcv = "FALSE"Ethernet0.addressType = "gene
Notes on how to solve Nic failure after VMware cloned CentOS.
First, ensure that udev-post is started.
[Root @ localhost ~] # Chkconfig -- list | grep udevUdev-post 0: off 1: on 2: on 3: on 4: on 5: on 6: off
[Root @ localhost ~] #/Etc/init. d/udev-post startRetrigger failed udev events [OK][Root @ localhost ~] #
Comment out the line of the original eth0 and change the generated eth1 to eth0.
[Root @ localhost ~] # Cat/etc/udev/rules. d/70-persistent-net.rules# This file was automatically genera
The type of network adapter provided by VMware is Pcnet32, and if you do not find a network card inside the VM, you can tryLspci |egrep "net| Eth "view type Lspci-k-v |grep eth-a20 view corresponding driver lsmod |egrep" net| intel|e1000 "See if there is a NIC driver el 7 default does not provide Pcnet32 network card driver, because Pcnet32 's network card is too old, also does not support Mii-tool. Here we will modify the type of network adapter pr
permission issues# echo-bond0 > Bonding_mastersThe echo-number indicates that the device is removed, + indicates the device is added# Cat Bonding_mastersBond1# ls/proc/net/bondingBond1You can see that the bond network port has been deleted successfully.
Add eth0 to Bond (BOND0):# echo +eth0 >/sys/class/net/bond0/bonding/slavesRemove eth0 from Bond (BOND0):# Echo-eth0 >/sys/class/net/bond0/bonding/slavesAdd the first bond, with two e1000 interface, w
Open source virtual machine software VirtualBox has been updated to version 1.5.6. Some of the interesting changes include fixing the problem of seamless mode and Full-screen mode, improving the performance of Solaris clients, supporting read-only shared folders, supporting E1000 device emulation, and better compatibility with Kernel 2.6.24, and more. The full change record for VirtualBox 1.5.6 is as follows: * gui:fixed several error messages * gui:fix
1. Edit the file:
#vi/etc/modprobe.conf
Alias Eth0 TG3
Alias Eth1 TG3
Alias eth2 e1000 Note: e1000 for server Tanga network card
Add to:
Alias Bond0 Bonding
Options Bond0 miimon=100 mode=1
(0 indicates that load blance 1 means hot standby)
2. Create Bond0 Starter Profile:
Cd/etc/sysconfig/network-scripts/vi ifcfg-bond0
The contents are as follows:
Device=bond0
Onboot=yes
Bootproto=static
ipaddr=192.168.0.
Finish, and wait for the clone to complete.
8. We have completed the task of cloning a virtual machine.
9, Next is to modify the configuration of the virtual machine network card information, below we in CDHNODE5 for example, the other nodes themselves according to the following self-configuration.
First open CDHNODE5, and the host name is CDHNode2, because CDHNODE5 is cloned from CDHNode2, so the hostname is still CDHNode2.
10, temporarily should not host name, we first check, this time sh
should be viewed separately.
4. The kernel symbol list can also be viewed via NM vmlinux
You can display all the symbols in the kernel after the kernel has been compiled, and the modules should be viewed separately.
5. The symbol list of the module can be viewed via NM module_name
However, a relative address is obtained, and an absolute address is assigned only after it is loaded. For example: e1000 module, if the symbol in
Message signaled Interrupt (MSI) (int)Yum Update system UpdatesYum-y UpdateCentos6.5 update e1000 NIC driver Centos6.5 update e1000 NIC driverRebootView System version view NIC driver[Email protected] ~]# Modinfo bnx2FileName:/lib/modules/2.6.32-642.el6.x86_64/kernel/drivers/net/bnx2.koFirmware:bnx2/bnx2-rv2p-09ax-6.0.17.fwFirmware:bnx2/bnx2-rv2p-09-6.0.17.fwFirmware:bnx2/bnx2-mips-09-6.2.1b.fwFirmware:bnx
Tags: alt tle oss sys root generates sysconf roo. comCENTOS6after the virtual machine is cloned, the NIC name changes, and the default network card name is eth0. The network card for the cloned virtual machine is eth1. Default configuration file:/etc/sysconfig/network-scripts/ifcfg-eth01 , and the configuration file, restart network.[[Email protected]]# vim/etc/sysconfig/network-scripts/ifcfg-eth0Device=eth0Type=ethernetOnboot=onNm_controlled=yesBootproto=dhcp 2 , editing a network card device[
VMware cloned virtual machine, boot NIC error after bootFailure phenomena:[[emailprotected] ~]# service network restartShutting down loopback insterface: [ OK ]Bringing up loopback insterface: [ OK ]Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [FAILED]This time can be entered ifconfig-a can see no eth0 network card device name, but ther
multiple startup modes, such as efi and pxe, which are included in this directory and all of which require the support of specific BIOS.Listing 1. BIOS files in the QEMU source code tree
$ ls pc-bios/acpi-dsdt.aml efi-rtl8139.rom openbios-ppc pxe-e1000.rom qemu_logo_no_text.svg slof.bin bamboo.dtb efi-virtio.rom openbios-sparc32 pxe-eepro100.rom qemu-nsis.bmp spapr-rtas bamboo.dts keymaps openbios-sparc64 pxe-ne2k_pci.rom qemu-nsis.ico spapr-rtas.bin
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.