I would like to ask you a question about linux Static Routing.
Source: Internet
Author: User
I would like to ask you a question about linux Static Routing-Linux Enterprise Application-Linux server application. The following is a detailed description. When I was learning linux Static Routing, I encountered this problem:
In the Redhat9.0 environment, set the specified CIDR Block route
(2) The books on hand are written as follows:
# Route add-net 192.168.3.0 netmask 255.255.255.0 dev eth0
# Route add-net 192.168.3.0 netmask 255.255.255.0 gw 192.168.6.66 dev eth0
(3) another reference book is written as follows:
# Route add-net 192.168.3.0 netmask 255.255.255.0 gw 192.168.6.66
# Route add-net 192.168.3.0 netmask 255.255.255.0 dev eth0
"Gw 192.168.6.66, dev eth0, you can write either of them"
Bytes -------------------------------------------------------------------------------------------------
My problem is:
(1) which of the following statements are correct?
(2) is the "# route add-net 192.168.3.0 netmask 255.255.255.0 gw 192.168.6.66 dev eth0" written in the book correct? If it is correct, can it be abbreviated? How is it true?
(3) On the forum, I found a friend who wrote:
# Route add-net 192.168.3.0 netmask 255.255.255.0 default gw 192.168.6.66
Is this correct? I don't think I need to write default, do I know?
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.