Linux to vro

Source: Internet
Author: User
Tags netconf dmesg
Article Title: Linux has changed the PC to a vro. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
---- Using Linux to install a microcomputer into a LAN router in a small network with two or three network segments 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
  
---- Change the interrupt number and input/output range of the three 3C509 NICs so that they do not conflict, and change the plug-and-play function of the ENI from enable to disable. The interrupt numbers and input/output ranges of the three NICs are 5/0x310, 10/0x300, and 11/0x210.
  
---- 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.
  
---- 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 :......
  
---- Indicates that the system correctly configures the first Nic and finds the second Nic. Run the network configuration tool netconf:
  
[Root] # netconf
  
---- Enter the network configuration tool
  
---- Select the first client tasks, enter Basic host information, and then select Adaptor2 as the second Nic. The first Nic is Adaptor1, which has been 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.
  
   
  
---- Configure the routing Service
  
---- Load the routed process at startup and run the system setup tool. Select ntsys, and then press the asterisk (press the Space key) to select the service in the list of services automatically running when the system starts. Select OK to exit, and then select quit to exit. Enable the RIP routing function in the Network Configuration tool. Run netconfig and select client tasks, Routing and route ways, and Set default:
  
Default gateway: 0.0.0.0
  
[] Enable routing
  
---- Add an asterisk (press the Space key) before Enable routing to start the routing function. Select Accept and then exit the network configuration tool as prompted. Now, the route configuration is complete. If you have routes to other routers, you can use the Set other routes to networks option in the network configuration or the router add command to add route entries.
  
---- Restart the machine and connect the switches or hubs of the three CIDR blocks to the machine. The configuration is complete. If you want to perform a test, you can use a machine in one CIDR block to ping the machine in another CIDR block.
  
   
  
---- One note
  
---- At present, my unit is working as a router using the above microcomputer because the network equipment is not in place. It is quite satisfactory to connect the three CIDR blocks of nearly one hundred microcomputer.
Dmesg
View system startup records
Netconf
Network Configuration Tool
Setup
System Configuration tools
Ifconfig
Nic parameter configuration and viewing
Router
Route configuration and view
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.