Bridged and NAT modes, it is not easy to access the Internet. Therefore, the Bridged (BRIDGE) mode is recommended. The kernel driver mainly needs to enable the segmentation offloading function of the NIC in Guest. It is enabled by default and can be viewed using ethtool. 2. VMware is the leader in the virtual machine industry. In recent years, various commercial solutions have emerged in an endless stream of network adapters www.2cto.com. After reading the official documentation, we found that
/sysconfig/network-scripts/under only ifcfg-eth0 files, although the Internet access, but cannot set static IP.Solution: The code is as follows:Copy code Vi/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, and change only the value of the NAME = key.# PCI device 0x8086: 0x100e (
-scripts Modify the ifcfg-eth0 file at this timeChoose the bridge mode, the configuration file is as followsDevice=eth0Bootproto=staticipaddr=192.168.0.201netmask=255.255.255.0gateway=192.168.0.1Nm_controlled=noOnboot=yesType=etherneIpv6init=noRestart Network Service#service Network Restartthis will cause an error when restarting the Network service because the system is not recognized as eth0 , and we're going to unload it and reload it first.#modprobe-R e
/wyfs02/M02/8D/08/wKioL1iDN2-Rn-YMAACcQoS7cnQ321.png-wh_500x0-wm_3 -wmp_4-s_770363201.png "title=" B.png "alt=" Wkiol1idn2-rn-ymaaccqos7cnq321.png-wh_50 "/>
4. Modify the NIC configuration file to change the MAC address to 00:0c:29:d7:e7:ab
[Email protected] ~]# Vim/etc/sysconfig/network-scripts/ifcfg-eth0Modified: Hwaddr=00:0c:29:d7:e7:ab
5. Restart the network service
[[Email protected] ~] #service Network restart
6. View network information
[[Email
. Necessary directory for creating the system bin sbin etc/rc.d var usr tmp home Root proc sys meida MNT lib lib64 5, porting system commands Bash Mount cd ls CP br> mkdir rm Touch 6, Create a software link to bash sh 7. Generating the Grub configuration fileDefault=0timeout=10Title My mini LinuxRoot (hd0,0)Kernel/vmlinuz ro root=/dev/sda2 Quiet selinux=0 init=/bin/bashInitrd/initramfs.img8. Create an init program to complete the system initiali
changes, Udev will automatically correspond to the MAC network card eth1, and so on. In fact, the kernel only recognized a network card, and the NIC name related to the configuration has not changed any.Solution:Udev saves Mac and Nic name correspondence in/etc/udev/rules.d/70-persistent-net.rulesRecord the new Nic MAC address and name.Cat/etc/udev/rules.d/70-persistent-net.rules# PCI Device 0x8086:0x100f (e1000)------The address before the copy is c
CentOS1, [[email protected] ~]# ifconfig-a [[email protected] ~]# Vim/etc/udev/rules.d/70-persistent-net.rules Delete The first Mac corresponding to the nonexistent record, change the following eth1 to Eth0[[email protected] ~]# Vim/etc/sysconfig/network-scripts/ifcfg-eth0 Delete mac address and UUID, Modify IP address, [[email protected] ~]# modprobe-r e1000[[email protected] ~]# modprobe e1000[[email prot
MAC address, such as:Step three, modify the network card Address VI Qkxue.net/etc/udev/rules.d/70-persistent-net.rulesThis file records all network card information on the current machineAccording to the newly generated MAC address, find the corresponding line, the name of the network card is changed to Eth0, the other network cards are deleted.# PCI Device 0x8086:0x100f (e1000)#SUBSYSTEM = = "NET", action== "Add", drivers== "? *", attr{address}== "0
The default NIC for Vmware workstation is the AMD PCnet am79c970a, which can change the NIC configuration to virtual out of the Intel (R) pro/1000 and VMware PCI Ethernet adapter network cards.Add or modify the following statement in the. vmx file:Ethernet0.virtualdev = "e1000"A value of "e1000" specifies that the network card type is Intel (R) pro/1000A value of "vlance" specifies that the network card typ
# make [-j #] Dir_name/B. compiling only specific modules# Cd/usr/src/linux# make [Dir/]file.koExample:# Cd/usr/src/linux# Make Drivers/net/ethernet/intel/e1000/e1000.ko3. Cross-compiling: the target platform for compiling is not the same as the platform currently being compiled;Make Arch=arch_nameExample:# Make Arch=armKernel recompilation:1. Delete the contents of all/usr/src/inux-version directories, rel
Software version: VMware Workstation 10.0.2Os:oracle Enterprise Linux 6.5After cloning is complete, add two network cards:650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/27/5D/wKioL1Nx3dKizDAFAACif8uyFm0361.jpg "title=" 2014-05-13_165004.png "alt=" Wkiol1nx3dkizdafaacif8uyfm0361.jpg "/>eth0:00:0c:29:e0:4e:69eth1:00:0c:29:e0:4e:73Boot up to view the network situationFirst Modify / etc/udev/rules.d/70-persistent-net.rules file, remove the useless network card, only keep our new network
the computer.On the virtual machine, right-click Settings, network adapter, high-level build Mac, OK. Generate a new MAC address, such as:Step three , modify the network card address Vi/etc/udev/rules.d/70-persistent-net.rulesThis file records all network card information on the current machineAccording to the newly generated MAC address, find the corresponding line, the name of the network card is changed to Eth0, the other network cards are deleted.# PCI Device 0x8086:0x100f (
Execute permission to script, run scriptYou can copy all the commands you want.The command can be copied, but do not forget the NIC driver module, so that the system can use the network function.Locate e1000You can copy E1000.ko.As an operating system, some folders under the root because it is to havemkdir {Etc,dev,sys.proc,tmp,root,lib,user,home,var,boot}Of course don't forget sync let the cache data write into the disk.Then you can shut down the ma
permanently stored in a network device. Workaround One: ethtool settings can be saved by/etc/sysconfig/network-scripts/ifcfg-ethx file. This activates the option the next time the device starts. NBSP For example: ethtool-s eth0 speed Duplex full Autoneg off This instruction sets the eth0 device to Full-duplex Adaptive with a speed of 100Mbs. To set these parameters eth0 startup, modify the file/etc/sysconfig/network-scripts/ifcfg-eth0 and add the following line: ethtool_opts= Speed Full
better.The SCSI controller is also a pit. VMware's documentation says Paravirtual performance is 20% stronger than the default, but in order to be compatible with older operating systems, he is using LSI Logic SAS by default. After selecting Paravirtual, remember to add a floppy drive when installing the operating systemNetwork card, the default network card is E1000, generally recommended to use VMXNET3, but after using VMXNET3 need to install Vmtoo
server will unicast in response to client offer;When the client receives an offer, it sends a request again via the broadcast;The DHCP service side will send details to the client ACK, end the exchange process;The DHCP server is using UDP port 67;The DHCP client uses UDP port 68;Basic Network ConfigurationTo connect a Linux host to a network, you need to configure the networkGenerally include the following:Host NameIp/netmaskRouting: Default gatewayDNS server: Domain name resolutionCan add mult
Allyesconfig: All options are answered "yes" (c) made Allnoconfig: All options are answered "no"(2) Compile full compile: Make [-j #] Part of the kernel: (a) compile only the relevant code in a subdirectory cd/usr/src/linux make dir/(b) compile only a specific Module Cd/usr/src/linux make Dir/file.ko for example: e1000 compiled driver only: Make drivers/net/ethernet/intel/e1000/e 1000.koTo get the use of a
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.