Changing a PC to a vro in Linux

Source: Internet
Author: User
Use the Linux system to change the PC to a router-Linux Enterprise Application-Linux server application information. The following is a detailed description. In a small network with two or three network segments, using Linux to install a microcomputer into a LAN router can achieve better results with a low investment. Here, we use Red Hat Linux 5.1 as an example to describe how to install an HP VL5/166 microcomputer into a LAN router with three 3Com 3C509 NICs.

Change Nic Configuration

First, change the interrupt number and input/output range of the three 3C509 NICs so that the three NICs do not conflict, and change the plug-and-play function of the NIC from enable to disable. The interrupt numbers and input/output ranges of the three NICs are 5/0x310, 10/0x300, and 11/0x210.

Secondly, install Linux on a microcomputer. The installation process is not described in detail. Note that a network card is inserted before installation. During installation, Linux will automatically find this Nic and name it eth0. In this case, you can configure some parameters, such as IP address 10.130.28.254 and subnet mask 255.255.255.0, install the network package during installation. Then, disable the microcomputer, insert the second Nic, and restart. When Linux is started, the second Nic is automatically found. After the startup is complete, Log On As root and run the dmesg | more command to view the startup process records. The following prompt is displayed:

Eth0: 3c509 at ox310 tag1, 10 baseT port, address 00 20 af dc e9 46, IRQ 5

Eth1 :......

The system correctly configures the first Nic and finds the second Nic. Run the network configuration tool netconf:

[Root] # netconf

Go to the network configuration tool

Select the first client tasks, select Basic host information, and select Adaptor2 as the second Nic. The first Nic is Adaptor1, Which is configured. The Adaptor2 configuration is as follows:

Config mode [*] Enabled

[*] Manual () DHCP () BootP

Primary name + domain router:

(This parameter is left blank and does not need to be changed)

Aliases (opt): (originally empty, do not change)

IP address: 10.130.29.254

Netmask (opt): 255.255.255.0

Net device: eth1

Kernel module: 3c509

I/O port (opt): (it is null and does not need to be changed)

Irq (opt): (the original value is null and does not need to be changed)

After configuration, select "quit" and then select "Accept:

Active the changes

Preview what has to be done

Don't quit

Select Active the changes to exit the network configuration tool. At this time, the second network card eth1 is configured. Run the ifconfig command to view the NIC parameters and status. Like the second Nic, configure the third Nic, set the IP address to 10.130.30.254, And the subnet mask to 255.255.255.0.

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.