亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
12下一頁
最近訪問板塊 發(fā)新帖
查看: 3772 | 回復(fù): 11
打印 上一主題 下一主題

小問題,討論討論(路由表) [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2008-06-30 20:32 |只看該作者 |倒序?yàn)g覽
[root@Runtop ~]# 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
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
[root@Runtop ~]# route add -net 10.0.0.0 netmask 255.255.255.0 dev eth1           
[root@Runtop ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        *               255.255.255.0   U     0      0        0 eth1
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
[root@Runtop ~]# 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
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
[root@Runtop ~]#

怎么加不進(jìn)10.0.0.0/24網(wǎng)絡(luò)?兩張網(wǎng)卡(eth0 連外網(wǎng) ,eth1連內(nèi)網(wǎng),PING不通10.0.0.0里的機(jī)子)

[root@Runtop ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:14:BF:5D:6E:15  
          inet addr:192.168.1.89  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::214:bfff:fe5d:6e15/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3274 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2062 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:256281 (250.2 KiB)  TX bytes:243975 (238.2 KiB)
          Interrupt:10 Base address:0x6000

eth1      Link encap:Ethernet  HWaddr 00:18:F8:08:BA:57  
          inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::218:f8ff:fe08:ba57/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:337 errors:0 dropped:0 overruns:0 frame:0
          TX packets:87 errors:9 dropped:0 overruns:0 carrier:18
          collisions:0 txqueuelen:1000
          RX bytes:57783 (56.4 KiB)  TX bytes:13070 (12.7 KiB)
          Interrupt:11 Base address:0xa000

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:1852 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1852 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2786710 (2.6 MiB)  TX bytes:2786710 (2.6 MiB)

[root@Runtop ~]#

[root@Runtop ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Linksys NC100 Network Everywhere Fast Ethernet 10/100
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
HWADDR=00:14:BF:5D:6E:15
IPADDR=192.168.1.89
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BOARDCAST=192.168.1.255
GATEWAY=192.168.1.1

[root@Runtop ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
# Linksys NC100 Network Everywhere Fast Ethernet 10/100
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
HWADDR=00:18:F8:08:BA:57
IPADDR=10.0.0.1
NETMASK=255.255.255.0
BROADCAST=10.0.0.255

[root@Runtop ~]#

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2008-06-30 20:47 |只看該作者
討論討論

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2008-06-30 20:58 |只看該作者
沒道理
10.0.0.0/24是eth1的直連網(wǎng)絡(luò),不用加路由,只要網(wǎng)卡up,running,就自己會(huì)生成路由加入路由表中

LZ給的ifconfig信息很正常。eth1處于up running狀態(tài),為什么直連10段的路由不見了。。我分析不出原因

tail -f /var/log/messages &
service network restart

然后看看輸出信息是有什么可參考的信息,帖出來看看

論壇徽章:
5
IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-06 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-10 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-23 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-24 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-11-12 06:20:00
4 [報(bào)告]
發(fā)表于 2008-07-01 16:35 |只看該作者
1、這個(gè)路由條目無需添加的。


按照LS的提示重新起一下網(wǎng)絡(luò)看看。

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2008-07-01 20:27 |只看該作者
[root@Runtop ~]# tail -f /var/log/messages
Jul  1 20:38:27 Runtop sysctl: kernel.sysrq = 0
Jul  1 20:38:27 Runtop sysctl: kernel.core_uses_pid = 1
Jul  1 20:38:27 Runtop network: Setting network parameters:  succeeded
Jul  1 20:38:27 Runtop kernel: Disabled Privacy Extensions on device c0366c20(lo)
Jul  1 20:38:27 Runtop network: Bringing up loopback interface:  succeeded
Jul  1 20:38:29 Runtop network: Bringing up interface eth0:  succeeded
Jul  1 20:38:30 Runtop kernel: eth1: Setting full-duplex based on MII#1 link partner capability of 45e1.
Jul  1 20:38:30 Runtop kernel: eth0: Setting full-duplex based on MII#1 link partner capability of 4de1.
Jul  1 20:38:31 Runtop ifup: RTNETLINK answers: File exists
Jul  1 20:38:31 Runtop network: Bringing up interface eth1:  succeeded
Jul  1 20:40:01 Runtop crond(pam_unix)[5612]: session opened for user root by (uid=0)
Jul  1 20:40:01 Runtop crond(pam_unix)[5614]: session opened for user root by (uid=0)
Jul  1 20:40:01 Runtop crond(pam_unix)[5614]: session closed for user root
Jul  1 20:40:01 Runtop crond(pam_unix)[5612]: session closed for user root

論壇徽章:
0
6 [報(bào)告]
發(fā)表于 2008-07-01 20:32 |只看該作者
[root@Runtop ~]# 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
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
[root@Runtop ~]# service network restart
Shutting down interface eth0:                              [  OK  ]
Shutting down interface eth1:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Setting network parameters:                                [  OK  ]
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:                                [  OK  ]
Bringing up interface eth1:                                [  OK  ]
[root@Runtop ~]# 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
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
[root@Runtop ~]#


裝了DHCP服務(wù)器(分10.0.0.0網(wǎng)段IP,客戶可以得到IP,但相互PING不通)
[root@Runtop ~]# dhcpd
Internet Systems Consortium DHCP Server V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 2 leases to leases file.
Listening on LPF/eth1/00:18:f8:08:ba:57/10.0.0/24
Sending on   LPF/eth1/00:18:f8:08:ba:57/10.0.0/24
Listening on LPF/eth0/00:14:bf:5d:6e:15/192.168.1/24
Sending on   LPF/eth0/00:14:bf:5d:6e:15/192.168.1/24
Sending on   Socket/fallback/fallback-net
[root@Runtop ~]#

論壇徽章:
0
7 [報(bào)告]
發(fā)表于 2008-07-01 20:58 |只看該作者

回復(fù) #6 tiansky 的帖子

Jul  1 20:38:31 Runtop ifup: RTNETLINK answers: File exists
這里有個(gè)錯(cuò)誤,可能和你的問題無關(guān),但和網(wǎng)絡(luò)有關(guān),檢查一下的好

另 cat /proc/net/route 看看是否有eth1的直聯(lián)路由,
ifconfig eth1 down
route -n
----------------
ifconfig eth1 up
route -n
比較兩個(gè)輸出

論壇徽章:
5
IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-06 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-10 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-23 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-08-24 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2015-11-12 06:20:00
8 [報(bào)告]
發(fā)表于 2008-07-02 09:24 |只看該作者
ifconfig -a
帖結(jié)果,看看別的接口。

論壇徽章:
0
9 [報(bào)告]
發(fā)表于 2008-07-02 18:00 |只看該作者
[root@Runtop ~]# 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
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
[root@Runtop ~]# ifconfig eth1 down
[root@Runtop ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
[root@Runtop ~]#

論壇徽章:
0
10 [報(bào)告]
發(fā)表于 2008-07-02 18:30 |只看該作者
兩天了,還是沒想通,幫幫忙,


[root@Runtop ~]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:14:BF:5D:6E:15  
          inet addr:192.168.1.89  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::214:bfff:fe5d:6e15/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:942 errors:0 dropped:0 overruns:0 frame:0
          TX packets:543 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:74333 (72.5 KiB)  TX bytes:57138 (55.7 KiB)
          Interrupt:10 Base address:0x6000

eth1      Link encap:Ethernet  HWaddr 00:18:F8:08:BA:57  
          inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::218:f8ff:fe08:ba57/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:38 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:32 dropped:0 overruns:0 carrier:64
          collisions:0 txqueuelen:1000
          RX bytes:4679 (4.5 KiB)  TX bytes:1100 (1.0 KiB)
          Interrupt:11 Base address:0xa000

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:1761 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1761 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2770556 (2.6 MiB)  TX bytes:2770556 (2.6 MiB)

sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

[root@Runtop ~]#

[ 本帖最后由 tiansky 于 2008-7-2 18:39 編輯 ]
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP