Configure network card and restart

2010-04-30  来源:本站原创  分类:OS  人气:199 

Reprinted from:

In the Linux environment, configure the card, most use the ifconfig and netconfig to configure the network card. For Linux systems, each of its service, each component will have its own profile. Users can go to modify it, use the command more convenient than:)
Linux network card configuration file located in / etc/sysconfig/ntetwork-scripts/ifcfg- (interface name), such as ifconfig-eth0.
Open this file, you will find its form is very simple, the meaning of the following configuration is used.

1, DEVICE = name, where, name is the physical device name.
2, IPADDR = addr, where, addr is the IP address.
3, NETMASK = mask, which, mask is the netmask value.
4, BROADCAST = addr, where, addr is the broadcast address.
5, GATEWAY = addr, where addr is the gateway address.
6, ONBOOT = answer, where, answer is yes (boot, activate the device) or no (do not activate the device at boot time)
7, USERCTL = answer, where, answer is yes (non-root user can control the device) or no
8, BOOTPROTO = proto, which, proto take the following values: none, boot, do not use the agreement; static statically assigned addresses; bootp, using the BOOTP protocol, or dhcp, use the DHCP protocol.

After configured:

service network restart can.

  • Configure network card and restart 2010-04-30

    Reprinted from: In the Linux environment, configure the card, most use the ifconfig and netconfig to configure the network card. For Linux systems, each of its service, each component will have its

  • centos system Broadcom BCM5709 network card does not work 2010-04-04

    Reality today received notice that the server services down, because the outside can not see, after a while my colleagues said to be unreasonable because the network card then restart the normal. Home inspection on the server, no error, it did not fi

  • Linux network card bound to achieve (load balancing and redundancy backup) 2010-08-19

    1 Create a network card configuration file, obtained by binding the logical (virtual) network adapter name is bondx, where x values 0,1,1 ,..., bound for the first group, the logical name of the network card bond0, the corresponding The configuration

  • Ubuntu10.04 mode to change the network card 2010-12-01

    : ~ $ Mii-tool-F 10baseT-HD eth0 / / half-duplex network cards work in the 10M : ~ $ Mii-tool-F 100baseTx-FD eth0 / / network card work in full duplex 100M : ~ $ Mii-tool-r eth0 / / LAN adaptive If you want to automatically configure the network card

  • Linux network card detection and setting 2010-03-18

    This is my depressing thing at least a week, write to you, as you accumulate experience points, anyway, I was in the boss down the technology No bad habits (PS: To be honest, I am also doing development, the results let me engage in deployment). Firs

  • Linux network card binding 2010-06-24

    SUSE mainstream manufacturers recommended method, individuals are more respected! First, configure the network card driver added In / etc / sysconfig / kernel in MODULES_LOADED_ON_BOOT parameters with the network card driver, for example, MODULES_LOA

  • linux network card driver analysis 2011-08-30

    linux network card driver analysis Learning should be a first simplification of the problem, the problem in the complex process. Start tackling complex issues, it is inevitable people are nervous, stretched feeling. Read Linux network card drivers as

  • Wireless network card can not find the problem 2010-02-24

    Phenomenon: BENQ Joybook C42 Wireless Internet can not find. 1, My Network Places -> Properties, and only the local connection, no wireless connection 2, Device Manager -> Network adapters, only one network card, no wireless network card Treatment:

  • Bind more than one network card with static IP routing 2010-04-06

    System Environment: CentOS 5 1, bind more than one network card IP Build configuration file ifcfg-ethX-rangeX: IPADDR_START = start ip IPADDR_END = end of the ip vi /etc/sysconfig/network-scripts/ifcfg-eth0-range0 Add the following : DEVICE=eth0-rang

  • redhat linux network card a fixed ip setting 2010-04-30

    redhat linux network card a fixed ip setting Before xwindow under redhat-config-network to set a fixed ip network card was found does not work, set up after the ping is unreasonable. To look for some information, change / etc/sysconfig/network-script

  • ubuntu install rtl8712, 8188,8191,8192 SU usb wireless network card driver 2010-06-21

    Laptop comes with a wireless network card, always dropped, the company gave a rtl8191s wireless card, ubuntu does not recognize. To find a lot of information, and finally installed successfully. Steps are as follows: 1. First download the driver unde

  • A re-install the network card driver 2010-06-28

    #! / Bin / bash export PATH = $ PATH: / usr / bin: / sbin: / usr / sbin:. rmmod bnx2 modprobe bnx2 vi chmod 755 nohup. / & Install network card drivers, do not restart the server the

  • 3g network card installed on the process of ubuntu10.04 2010-07-31

    Recently purchased books thinkpad sl410k, get our hands on the grid immediately after win7, directly on the ubuntu10.4, very fortunately, did not actually install any drivers manually, beautiful pictures and to hear came out, but this machine indepen

  • linux environment, changes need to be restarted after the network card IP 2010-10-31

    linux environment, changes need to be restarted after the network card IP Command is: service network restart

  • Change the name of the virtual machine network card eth 2010-11-04

    virtualbox virtual machine to install sles11sp1, will be free to poke blind into eth2 eth0 card, and in any case can not go after the network, and finally found the command line: ip link set eth2 name eth0, then will be able to succeed online. Reprod

  • linux tools to view real-time traffic network card 2010-11-20

    nload is a network traffic statistical tool, the current version is 0.7.2. Download: Can also be installed using yum. yum install nload Source Installation wget http://heanet.dl.sourceforge.

  • bind more than one network card ip linux 2010-12-13

    Linux network card bound to a method of multiple IP 1.Redhat series (redhat, Fedora Core, Centos) method assumes that the implementation need to bind multiple IP network card is eth0, in the / etc / sysconfig / network-scripts directory create a file

  • linux network card is not compatible with the next issue redhatlinux 2011-01-09

    Today are installed with linux in a virtual machine network card can not be activated encountered the problem of the Internet to find the reason, now Zhuantie as follows: VMware4.5 Redhat 9 or more above and between the network card driver is not com

  • Ubuntu's network card configuration under the fixed ip 2011-01-12

    Source: linux Corporation Ubuntu fixed ip network card configuration under preparation under the vi command must first understand, you can easily understand the next google: 1. Single card with a single IP (generally) vi / etc / network / interface a

  • linux modify the network card IP (CentOs) 2010-11-12

    OS CentOs_5_5_64_server Modify the network card 1. Modify network configuration Wrote [Root @ test-db-100 ~] # vim / etc / sysconfig / network Wrote / / Vim editing HOSTNAME, add GATEWAY NETWORKING = yes NETWORKING_IPV6 = no HOSTNAME = test-db-100 GA