Fedora network configuration tool system-config-network

Source: Internet
Author: User
Tags nameserver
Article title: Fedora network configuration tool system-config-network introduction. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems and open source, etc. This article mainly introduces the network configuration tool system-config-network in the Fedora Core system, it helps beginners learn how to configure the network and set non-route adsl strikethroughs;

Operating Environment: Fedora Core 4.0;

1. configure the network tool system-config-network;

1. Fedora Core network configuration tool system-config-network

This tool is divided into graphic mode and text command mode.

[Root @ localhost beinan] # rpm-qa | grep system-config-network
System-config-network-tui-1.3.26-1 note: This is a graphical tool;
System-config-network-1.3.26-1 note: This is the tool of regionalization;

First, check whether the software package has been installed. if the software package is not installed, find the packages from the installation disk;

[root@localhost beinan]#rpm -ivh system-config-network*
The graphical tool is called using the following command:
[Root @ localhost beinan] #/usr/bin/internet-druid
[Root @ localhost beinan] #/usr/bin/neat
[Root @ localhost beinan] #/usr/bin/neat-control Note: the network controller is graphical.
[Root @ localhost beinan] #/usr/bin/system-config-network-druid
[Root @ localhost beinan] #/usr/bin/system-control-network
[Root @ localhost beinan] #/usr/sbin/internet-druid note: This is a tool for internet configuration;
[Root @ localhost beinan] #/usr/sbin/neat note: neat is a network configuration tool, such as ADSL;
[Root @ localhost beinan] #/usr/sbin/system-config-network-druid note: Part of neat
[Root @ localhost beinan] #/usr/sbin/system-config-network-gui note: same as neat

Call in text mode: similar to the graphic interface;

[root@localhost beinan]# /usr/bin/system-config-network
[root@localhost beinan]# /usr/bin/system-config-network-cmd
[root@localhost beinan]# /usr/sbin/neat-tui
[root@localhost beinan]# /usr/sbin/system-config-network
[root@localhost beinan]# /usr/sbin/system-config-network-cmd
[root@localhost beinan]# /usr/sbin/system-config-network-tui

In fact, you can use the neat tool to configure the network. this is a graphical interface. if you want to use the text mode for configuration, you should use system-config-network-tui;

2. how to use a graphical network configuration tool;

[root@localhost beinan]#neat

You can add a Nic, edit an existing network device, or add an adsl dial-up. See the following series of figures;

You can click [new] to add devices, such as network cards and ADSL;

If you access the Internet through a vro or another machine and use DHCP to automatically obtain the IP address, you can select DHCP. if you access the Internet through pppoe, you can specify the IP address of the NIC; do not set a gateway;

Configure the username and password of ADSL: the network provider should have given it. for example, China Telecom, China Netcom or China Tietong. you can set the name of the provider by yourself; ensure that the user name and password are correct;

After the configuration, we need to save and then activate the device you added. this process is extremely simple;

2. some files and commands related to network configuration;

1. if you start the network service under the command line, it should be:
[root@localhost beinan]# /etc/init.d/network start
[root@localhost beinan]# /etc/init.d/network restart

2. the Nic configuration file is in the/etc/sysconfig/network-scripts directory; for example, the eth0 configuration file is generated by the neat after adding the NIC, the file is the ifcfg-eth0;

3. is The Nic supported;

First, you must learn to use lspci-v to view the Nic chipset information. use the modprobe kernel driver module name to load the NIC driver. if the Nic cannot be found after your system is installed, you may need to use the modprobe module or install the NIC driver;

The hardware device modules of the kernel are stored in/lib/modules/kernel version. you can see/kernel/drivers/by using the tab key/
For example, the NIC driver module of my system kernel is stored in/lib/modules/2.6.11-1.1369 _ FC4/kernel/drivers/net/

Use lsmod to check whether the driver has been loaded. if not, use the modprobe command to load the driver. for example, load the 8139 NIC driver:

[Root @ localhost beinan] # modprobe 8139too

View/etc/modprobe. conf;
For example, if I use a 8139 Nic, there should be a line in/etc/modprobe. conf;

Alias eth0 8139too

If there is a second network card eth0, add a line; alias eth1 8139too; of course, it is related to your network card chip. The network card of the 8139 chipset is supported by the driver module 8139too corresponding to the kernel;

4. ifconfig and ifup ifdown applications

[Root @ localhost beinan] # ifconfig eth0 on note: enable the Nic eth0
[Root @ localhost beinan] # ifconfig eth9 down Note: disconnect the Nic eth0
[Root @ localhost beinan] # ifup eth0 note: enable the Nic eth0
[Root @ localhost beinan] # ifdown eth0 note: enable the Nic eth0
[Root @ localhost beinan] # ifconfig-a note: Check whether the network device is activated;

Ifconfig can also configure the IP address of the NIC. it is a command line configuration tool. it will be introduced later;

5. adsl command line configuration tool (rp-pppoe)

Note: You can use neat to add an adsl dial-up to access the internet. See the previous figure;

If you are using a usb-based ADSL instance, you must first install the driver, which is a little troublesome to support usb adsl in Linux. if it is ethernet port B, all of them are supported; if you use the pppoe serial number, you can also use the adsl-setup configuration;

Of course, you need to configure the IP address of the NIC, and then set the ADSL configuration;

For example, you can set eth0

Ip: 192.168.0.1
Netmask: 255.255.255.0

Do not configure the Gateway:

Then run the adsl-setup

[Root @ LinuxSir02 root] # adsl-setup
Welcome to the ADSL client setup. First, I will run some checks on
Your system to make sure the PPPoE client is installed properly...
LOGIN NAME
Enter your Login Name (default root): the user Name provided by the ADSL provider, written here
INTERFACE
Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like/dev/hme0.
For Linux, it will be ethX, where 'X' is a number.
(Default eth0): eth0, which is the first network card of the first machine on which ADSL accesses the Internet.
Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
After which the link shoshould be dropped. If you want the link
Stay up permanently, enter 'no' (two letters, lower-case .)
NOTE: Demand-activated links do not interact well with dynamic IP
Addresses. You may have some problems with demand-activated links.
Enter the demand value (default no): click Enter here.
DNS
Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide dynamic DNS address ',
Enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are
Doing and not modify your DNS setup.
Enter the DNS information here: 202.96.134.133 this is DSN, it is best to use your local telecommunications
Please enter the IP address of your ISP's secondary DNS server.
If you just press enter, I will assume there is only one DNS server.
Enter the secondary DNS server address here: 202.96.168.68 this is the second DNS, which is also sent by China Telecom.
PASSWORD
Please enter your Password: write the Password given by the ADSL provider here
Please re-enter your Password: confirm the Password
USERCTRL
Please enter 'yes' (two letters, lower-case.) if you want to allow
Normal user to start or stop DSL connection (default yes): yes
FIREWALLING
Please choose the firewall rules to use. Note that these rules are
Very basic. You are strongly encouraged to use a more sophisticated
Firewall setup; however, these will provide basic security. If you
Are running any servers on your machine, you must choose 'none' and
Set up firewalling yourself. Otherwise, the firewall rules will deny
Access to all standard servers like Web, e-mail, ftp, etc. If you
Are using SSH, the rules will block outgoing SSH connections which
Allocate a privileged source port.
The firewall choices are:
0-NONE: This script will not set any firewall rules. You are responsible
For ensuring the security of your machine. You are STRONGLY
Recommended to use some kind of firewall rules.
1-STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2-MASQUERADE: Appropriate for a machine acting as an Internet gateway
For a LAN
Choose a type of firewall (0-2): 2
Start this connection at boot time
Do you want to start this connection at boot time?
Please enter no or yes (default no): yes
** Summary of what you entered **
Ethernet Interface: eth0
User name: ADSL User name
Activate-on-demand: No
Primary DNS: 202.96.134.20.
Secondary DNS: 202.96.168.68
Firewalling: MASQUERADE
User Control: yes
Accept these settings and adjust configuration files (y/n )? Y

Activate adsl dialing; use ifup ppp0 or adsl-start;
[root@localhost beinan]# adsl-start

6. resolv. conf file;

/Etc/resolv. conf file, which is only used for domain name resolution. if you can only access the ip address or ping the IP address, but cannot access the domain name, edit this file; if you use DHCP to automatically obtain the IP address, you do not need to modify this file;

If you are specifying an IP address, you may forget to add DNS. to add this file, the content of this file is similar to the following:

Nameserver 202.96.128.68
Nameserver 202.96.134.188
Nameserver 211.64.144.130
Nameserver 202.96.134.133

Resolv. conf content, each line starts with nameserver, and then adds DNS, it is best to find a DNS in your own city, the above can also be used; copy it on the line;

Postscript:

I just gave a brief introduction. I have time to sort out a detailed introduction to the network configuration tool. good luck to everyone;

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.