Linux route configuration-Linux Enterprise Application-Linux server application information. For details, refer to the following section. 1. First enable the routing function
Echo 1>/proc/sys/net/ipv4/ip-forward (1: enable routing function 0: Disable routing function)
(In this experiment, you only need to enable the routing function)
2. Other route settings:
A. Add route information:
Route add? Net 10.0.0.1 netmask 255.0.0.0 gw 192.168.0.1
Or Route add? Net 10.0.0.1 netmask 255.0.0.0 dev eth0 (go out through the first Nic of the local machine)
Delete route entries: you only need to change Add to Del.
B. Configure the route using Zebra (the configuration is the same as that of Cisco ):
1) set the logon password:
Vi/etc/zebra. conf
Password abc # Set the connection Password
Enable password 123 # Set a privileged password
2) enable the Service
Service zebra start
3) Create the route protocol file to be configured
For example, use the Rip Protocol: Touch/etc/zebra/ripd. conf.
4) Enable the Rip Protocol: Service ripd start
5) Enter Zebra:
Method 1. Telnet 127.0.0.1 2601 # Remember that the port is 2601
If no password is set, connections are not allowed by default, which is suitable for remote logon.
Method 2: Vtysh # enter without a password. If a password is displayed, it only applies to local logon.
6) The route configuration is the same as that in the Cisco router.
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.