Chinaunix

标题: Debian 下配置跨网段网关 [打印本页]

作者: apzc2529    时间: 2008-04-03 21:48
标题: Debian 下配置跨网段网关

                 Debian下配置跨网段网关
Interfaces文件如下
# 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.255.255
gateway 222.27.178.1
其中网络掩码netmask是配置的关键。
第一次我配置网络掩码为255.255.255.0,运行
#/etc/init.d/networking restart
提示:
Reconfiguring network interfaces…SIOCADDRT: Network is unreachable
Failed to bring up eth0.
done.
将网络掩码改成255.255.0.0后,提示
Reconfiguring network interfaces…if-up.d/mountnfs[eth0]:
waiting for interface lo before doing NFS mountswaiting for interface
eth0
done.
看来跨网段网关访问使用了NFS。
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/16471/showart_516897.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2