LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 937|回复: 7

10.3 网卡配置问题

[复制链接]
发表于 2007-10-11 14:54:27 | 显示全部楼层 |阅读模式
大家好,我的机子是双网卡,一个接宿舍路由连接电信网,一个接校园网,宿舍路由是由HDCP自动获取地址,校园网是设置静态ip地址。安装10.2的时候配置网卡时没有问题。可是最近安装到10.3,在配置时还是按以前的配置方法,eth0是连接校园网的网卡,eth1是连接电信的网卡,如图1所示,是配置静态IP,子网掩码填写的是:255.255.255.0,图2也显示了配置情况。可是当我激活eth0时,在KnetworksManager上却显示子网掩码为255.0.0.0,如图3,结果网络也连不上。只有激活eth1时可以连接网络。大家有遇到类似情况的吗?希望大家能帮忙解决,谢谢!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2007-10-11 17:20:24 | 显示全部楼层
两种得到IP的方式有冲突! 先完全配置好连接外网的网卡,上网正常后再配置第二块网卡!
因为, 你是两个路由大门,所以, 系统不知道走哪个门去访问外网了!
回复 支持 反对

使用道具 举报

发表于 2007-10-11 17:26:22 | 显示全部楼层
羡慕....

我的机器一块网卡认两块。

你描述不清晰。请给出完整的 route 表。
#route
#ifconfig

谢谢!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-12 10:20:01 | 显示全部楼层
vikizhe@linux-ymz:~> sudo route
口令:
sudo: route: command not found

查看不了阿!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-12 10:29:07 | 显示全部楼层
第二块网卡,也就是eth1,我把它删除配置,显示为“未配置”,可是一样可以激活,自动获取ip,可是第一块还是一样的问题,设置里的子网掩码和设别出的不一致
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-12 10:30:48 | 显示全部楼层
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
loopback        *               255.0.0.0       U     0      0        0 lo
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth1

eth0      Link encap:Ethernet  HWaddr 00:14:85:80:0C:80
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:446 errors:0 dropped:0 overruns:0 frame:0
          TX packets:226 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:49858 (48.6 Kb)  TX bytes:31616 (30.8 Kb)
          Interrupt:22 Base address:0xe000

eth1      Link encap:Ethernet  HWaddr 00:14:78:85:5F:95
          inet addr:192.168.1.120  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5450 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7320 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2064833 (1.9 Mb)  TX bytes:907255 (885.9 Kb)
          Interrupt:16 Base address:0x2000

lo        Link encapocal Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:302 errors:0 dropped:0 overruns:0 frame:0
可以了,请看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-12 10:31:20 | 显示全部楼层
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
loopback        *               255.0.0.0       U     0      0        0 lo
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth1

eth0      Link encap:Ethernet  HWaddr 00:14:85:80:0C:80
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:446 errors:0 dropped:0 overruns:0 frame:0
          TX packets:226 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:49858 (48.6 Kb)  TX bytes:31616 (30.8 Kb)
          Interrupt:22 Base address:0xe000

eth1      Link encap:Ethernet  HWaddr 00:14:78:85:5F:95
          inet addr:192.168.1.120  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5450 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7320 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2064833 (1.9 Mb)  TX bytes:907255 (885.9 Kb)
          Interrupt:16 Base address:0x2000

lo        Link encapocal Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:302 errors:0 dropped:0 overruns:0 frame:0
可以了,请看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-12 10:35:03 | 显示全部楼层
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        *               255.0.0.0       U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         10.10.12.254    0.0.0.0         UG    0      0        0 eth0
这是激活eth0的情况
eth0      Link encap:Ethernet  HWaddr 00:14:85:80:0C:80
          inet addr:10.10.12.74  Bcast:255.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:494 errors:0 dropped:0 overruns:0 frame:0
          TX packets:279 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:56263 (54.9 Kb)  TX bytes:38334 (37.4 Kb)
          Interrupt:22 Base address:0xe000

eth1      Link encap:Ethernet  HWaddr 00:14:78:85:5F:95
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6314 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8082 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2989724 (2.8 Mb)  TX bytes:1048700 (1.0 Mb)
          Interrupt:16 Base address:0x2000

lo        Link encapocal Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:318 errors:0 dropped:0 overruns:0 frame:0
          TX packets:318 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:17572 (17.1 Kb)  TX bytes:17572 (17.1 Kb)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表