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.