Use Ubuntu10.10 as the router, and dynamic routing is implemented by zebra (quagga ).

Source: Internet
Author: User
Ubuntu10.10 is only used to implement some simple functions, such as IP packet forwarding. A vro has at least two network interfaces (NICS) used to link different network segments. Generally, both wired and wireless network interfaces are available on the computer. You can also use an alias virtual network card for an experiment. If you need a wired network card to share the network through a wireless network card, you may also need to perform NAT (it is better to directly make the VPN described above more convenient) First, static forwarding: echo "1" & gt; /proc/sys/net/ipv4/ip_forward or modify

Ubuntu 10.10 is only used to implement some simple functions, such as IP packet forwarding.

A vro has at least two network interfaces (NICS) used to link different network segments. Generally, both wired and wireless network interfaces are available on the computer. You can also use an alias virtual network card for an experiment.

If you need a wired network card to share the network through a wireless network card, you may also need to perform NAT (it is better to directly make the VPN described above more convenient)

Static forwarding:
Echo "1">/proc/sys/net/ipv4/ip_forward
Or, after modifying/etc/sysctl. conf, sysctl-p is enabled, as shown in figure

Set two NICs. One of the gateways of port A is set to the IP address of port B, and the incoming messages of port A can be sent from Port B.
A static route needs to be added to ensure that messages returned from port B can be transmitted from Port.

Dynamic forwarding: a real routing function that uses various routing protocols to dynamically set routing information.
Zebra supports r00001, r00002, RIPng, OSPFv2, OSPFv3, BGP-4, and BGP-4 +.
1. install zebra: sudo apt-get install quagga
2. In the configuration file, copy the required file from the/usr/share/doc/quagga/example \ directory to the/etc/quagga/directory.
Sudo cp/usr/share/doc/quagga/examples/zebra. conf. sample/etc/quagga/zebra. conf // overall configuration file
Sudo cp/usr/share/doc/quagga/examples/ospf. conf. sample/etc/quagga/ospfd. conf // ospf Route Protocol Configuration File

Modify zebra. conf to set the logon password and privileged password, and modify ospfd. conf.

Modify/etc/quagga/daemons, select the started service, and change it to yes.

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.