论坛风格切换切换到宽版
  • 672阅读
  • 5回复

[问题求助]二张网卡上外网不通 [复制链接]

上一主题 下一主题
离线citurlong.
 
发帖
2070
C币
-235437
威望
395
贡献值
1
银元
-3
铜钱
4735
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
用.的是lin.ux Enterprise as 4的系统。安装了开发工具及系统管理工具等。DNS服务器未安装。            杀毒

二张网卡。一张是内网:192.168.0.4. 掩码是:255..255.255.0 网关:192.168.0.1.
               一张是外网:X.X.79.110 掩码是:255.255.255.248 网关.x.79.105http://upload.bbs.csuboy.com/Mon_1004/126_6728_df017f5679398c9.gif[/img]    外汇

ping 外网的.x.x.79.105的网关可以。我用另一个IP:X。X。79.108的IP。SSH.上去可以用。防火墙开了22端口。           鲜花
下面贴出配置:#ip route sho.w外贸
显示如下:
x.x.79.104/29 dev eth0  proto kernel  scope l.ink  src x..x.79.110.
192.168.0.0/24 dev eth1.  proto ke.rnel  scope link  src 192.168.0.4    外汇
169.2.54.0..0/16 dev eth1  scope link<性病>
default. via x.x.79.110 dev eth0  .scope link投资
d.efault via x.x.79..105 dev eth0外贸

#ifconfig
如下:
eth0      Link encap:Ethernet  HWaddr 00:0E:0CA:50:A2http://upload.bbs.csuboy.com/Mon_1004/126_6728_3b01f95722f71e9.gif[/img].
          inet addr.x.79.110  Bcasthttp://upload.bbs.csuboy.com/Mon_1004/126_6728_df017f5679398c9.gif[/img].x.79.111  Mask:255.255.255.248http://upload.bbs.csuboy.com/Mon_1004/126_6728_df017f5679398c9.gif[/img].
          inet6 addr: fe80.::20e.:cff:feda:50a2/64 Scope:Link[成人用品]
          UP. BROADCAST. RUNNING MULTICAST  MTU:1500  Metric:1<性病>
          RX packets:529966 errors:0 dropped.:0 .overruns:0 frame:0              乙肝
          TX pack.ets:306407 errors:0 dropped.:0 overruns:0 carrier:0             电子
.         collisions:0 txqueuelen:.1000服务器
          RX bytes:424444043 (4..04.7 MiB)  TX bytes:21248485 (20.2 MiB)电影

eth1      Link encap:Ethernet  .HWad.dr 00:13:46:72:9E:52.
  .        inet addr:192.168.0.4  Bcast:192.168.0.255  Mask:255..255.255.0健康
          inet6 addr: fe80.::213:46ff:fe72:9e52/64 Scop.e:Link.
      .    UP BROADCAST MULTI.CAST  MTU:1500  Metric:1--- 印刷
          RX packets:0 errors:.0 droppe.d:0 overruns:0 frame:0电脑
          TX packe.ts:1544 .errors:0 dropped:0 overruns:0 carrier:0           建材
    . .     collisions:0 txqueuelen:1000(        游戏          )
.       .  RX bytes:0 (0.0 b)  TX bytes:65352 (63.8 KiB).
        .  Interrupt:209 Base .address:0xe000.

lo   .     Link encap.:Local Loopback(        游戏          )
          inet a.ddr:127.0.0.1 . Mask:255.0.0.0             汽车
          inet6 add.r: ::1/128 Sco.pe:Host.
   .       UP LOOPBACK RUNNING  MTU:16436  Metric.:1            杀毒
          RX packets:1930 err.ors:0 dropped:0 ov.erruns:0 frame:0    美容
         . TX packets:1930 erro.rs:0 dropped:0 overruns:0 carrier:0              乙肝
          collision.s:0 txqueu.elen:0    健康
          RX bytes:1342564 (1..2 M.iB)  TX bytes:1342564 (1.2 MiB).



用:tracerou.te 218.85..157.99投资
显示如下:
tracerout.e to 218.85.157.99 (218.85.157.99), 30 hops max, 3.8 byte packets              乙肝
1  x..x.79.110 (x.x.79.110)  3000.799 ms !H  300.0.287 ms !H  3000.311 ms !H           建材


我在图形下有试过。用那内网的网线接上去。可以.上网.
用外网的那张就不行。IP和D.NS设置没有问题。服务器

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线hack119.
发帖
1875
C币
-60755
威望
362
贡献值
1
银元
-1
铜钱
4278
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
route -n
显示如下:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
X.x.79.104   0.0.0.0         255.255.255.248 U     0      0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth1
0.0.0.0         61.131.79.110   0.0.0.0         UG    0      0        0 eth0
0.0.0.0         61.131.79.105   0.0.0.0         UG    0      0        0 eth0

离线xunleifilm.
发帖
2062
C币
-152450
威望
382
贡献值
1
银元
-1
铜钱
4740
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
网关设置的太多了吧,你这种方式设置,只能有一个网关

离线ayumilove.
发帖
2035
C币
-152549
威望
351
贡献值
1
银元
0
铜钱
4548
人人网人气币
0
只看该作者 地板  发表于: 2010-04-13
那要如何设呢。我猜也是这个原因。我原来server2003也是。

我想一张用外网。一张内网。做邮件服务器。
内网的用户不用连接外网就可以发邮件。

离线cnstwb.
发帖
2149
C币
-235019
威望
398
贡献值
1
银元
-2
铜钱
4856
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-13
知道了。用
vi   /etc/sysconfig/network-scripts/ifcfg-eth0
就可以了。

离线梅花鹿.
发帖
1942
C币
-235492
威望
403
贡献值
1
银元
-4
铜钱
4610
人人网人气币
0
只看该作者 5楼 发表于: 2010-04-13
命令的话
route del default gw 192.168.0.1
快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
上一个 下一个