Configure a cross-Network Gateway In Debian

Source: Internet
Author: User
In Debian, configure the cross-CIDR Block gateway-the Linux Release Technology-Debian information. For more information, see the following. The Interfaces file is as follows:

# This file describe the network interfaces available on your system
# And how toactivate them. For more information, see interfaces (5 ).
# The loopback network interface
Auto lo
Iface lo inet loopback
# The primary network interface
Auto eth0
Iface the0 inet static
Address 222.27.179.199
Netmask 255.255.0.0
Network 222.27.0.0
Broadcast 222.27.0000255
Gateway 222.27.178.1

Netmask is the key to configuration.

The first time I configure the network mask to 255.255.255.0, run

#/Etc/init. d/networking restart

Tip:

Reconfiguring network interfaces... SIOCADDRT: Network is unreachable

Failed to bring up eth0.

Done.

After changing the network mask to 255.255.0.0, the prompt is displayed.


Reconfiguring network interfaces... If-up.d/mountnfs [eth0]: waiting for interface lo before doing NFS mountswaiting for interface eth0

Done.

It seems that NFS is used for cross-Network Gateway access.
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.