由 makesuse 在 09-05-2004 13:08 发表:
win下能开启路由,是否linux下也能开启路由?
MT800的猫,路由已经打开,win下网络配置:指定ip 192.168.1.7.指定了默认网关和域名服务器
win下:ipconfig 能得到iprouting yes的信息,猫的配置里面也有路由表的一些信息.
装了suse
网络配置:指定ip 192.168.1.7.指定了默认网关和域名服务器.和win下的设置一样,这样是不是能起用路由
#ifconfig 得到以下信息:
eth0 Link encap:Ethernet HWaddr 00:E0:4C:79:35:31
inet addr:192.168.1.7 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:4cff:fe79:3531/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3596 errors:0 dropped:0 overruns:0 frame:0
TX packets:3542 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2757202 (2.6 Mb) TX bytes:412663 (402.9 Kb)
Interrupt:10 Base address:0xbf00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:92 errors:0 dropped:0 overruns:0 frame:0
TX packets:92 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5968 (5.8 Kb) TX bytes:5968 (5.8 Kb)
#route 得到以下信息:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
如果没有打开路由该如何设置?
因为MT800这个路由器不支持回环,这样我建一个vsftpd(MT800起用路由),是不是不能从本地访问自己的ftp服务器?如果关掉其路由是不是便可以访问?
另外在Yast配置路由
我只设置这些:那个路由表是否要配置?
谢谢!
由 pangdae 在 09-05-2004 20:50 发表:
多看看 suse的文档
linux的NAT(你指的我想应该是这个吧!)应该比windows好得多!