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

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

Chinaunix

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

[網(wǎng)絡(luò)管理] 雙網(wǎng)卡綁定問題 [復(fù)制鏈接]

論壇徽章:
1
操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-06-20 06:20:00
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2013-09-09 15:32 |只看該作者 |倒序?yàn)g覽
本帖最后由 echoaix 于 2013-09-09 15:33 編輯

IBM 刀片小機(jī) 運(yùn)行l(wèi)inux 5片刀。
#uname -a
2.6.32-343.el6.ppc64 #1 SMP Mon Nov 19 16:49:16 EST 2012 ppc64 ppc64 ppc64 GNU/Linux
每片刀上eth0和eth1雙網(wǎng)卡綁定。
ifcfg-bong0內(nèi)容:
DEVICE=bond0                     
IPADDR=192.168.3.51               
NETMASK=255.255.255.0            
NETWORK=192.168.3.0               
BROADCAST=192.168.3.255           
ONBOOT=yes                        
GATEWAY=192.168.3.254            
BOOTPROTO=static                  
USERCTL=no                        
BONDING_OPTS="mode=1 miimon=500"            
DEFROUTE=yes

ifcfg-eth0內(nèi)容
DEVICE=eth0     
TYPE=Ethernet   
ONBOOT=yes      
BOOTPROTO=none  
USERCTL=no      
MASTER=bond0   
SLAVE=yes      

ifcfg-eth1內(nèi)容
DEVICE=eth1     
TYPE=Ethernet   
ONBOOT=yes      
BOOTPROTO=none  
USERCTL=no      
MASTER=bond0   
SLAVE=yes

/etc/rc.d/rc.local的內(nèi)容
ifenslave bond0 eth0 eth1         
route add default gw 192.168.3.254

現(xiàn)在的問題 只有一臺(tái)正常路由正常
正常的路由:
# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.3.0     *               255.255.255.0   U     0      0        0 bond0
link-local      *               255.255.0.0     U     1004   0        0 bond0
default         192.168.3.254   0.0.0.0         UG    0      0        0 bond0

其它的不對(duì)的:
# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.3.0     *               255.255.255.0   U     0      0        0 bond0
192.168.3.0     *               255.255.255.0   U     1      0        0 eth1
192.168.3.0     *               255.255.255.0   U     1      0        0 eth0
link-local      *               255.255.0.0     U     1004   0        0 bond0
default         192.168.3.254   0.0.0.0         UG    0      0        0 bond0
default         192.168.3.254   0.0.0.0         UG    0      0        0 eth0  

配置完全都一樣的。網(wǎng)卡文件也一樣的(只是IP設(shè)置不同)。咨詢一下什么問題,謝謝各位了。  



                     

論壇徽章:
381
CU十二周年紀(jì)念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大;照
日期:2013-03-13 15:38:15CU大;照
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大;照
日期:2013-04-17 11:17:32CU大;照
日期:2013-04-17 11:17:37CU大;照
日期:2013-04-17 11:17:42CU大;照
日期:2013-04-17 11:17:47CU大;照
日期:2013-04-17 11:17:52CU大;照
日期:2013-04-17 11:17:56
2 [報(bào)告]
發(fā)表于 2013-09-09 15:42 |只看該作者
去掉rc.local里面的內(nèi)容呢?

論壇徽章:
7
雙子座
日期:2013-09-09 15:55:31CU大;照
日期:2013-09-18 15:22:06CU大;照
日期:2013-09-18 15:22:20CU大牛徽章
日期:2013-09-18 15:22:26CU大牛徽章
日期:2013-09-18 15:22:31CU大牛徽章
日期:2013-09-18 15:22:37CU大牛徽章
日期:2013-09-18 15:22:46
3 [報(bào)告]
發(fā)表于 2013-09-09 15:52 |只看該作者
  1. 1. For a channel bonding interface to be valid, the bonding module must be loaded. To ensure that the module is loaded when the channel bonding interface is brought up, create a new file as root named +bonding.conf+** in the +/etc/modprobe.d/+ directory. Note that you can name this file anything you like as long as it ends with a .conf extension. Insert the following line in this new file:
  2. /etc/modprobe.d/bonding.conf :
  3. alias bond<N> bonding
  4. Replace <N> with the  interface number, such as 0. For each configured channel bonding  interface, there must be a corresponding entry in your new  /etc/modprobe.d/<bonding>.conf file.
  5. 2. To create a channel bonding interface, create a file in the /etc/sysconfig/network-scripts/ directory called ifcfg-bond<N> , replacing <N> with the number for the interface, such as 0. The contents of the file can be identical to whatever type of interface is getting bonded, such as an Ethernet interface. The only difference is that the DEVICE= directive must be bond<N> , replacing <N> with the number for the interface.
  6. The following is a sample channel bonding configuration file:
  7. DEVICE=bond0
  8. IPADDR=192.168.1.1
  9. NETMASK=255.255.255.0
  10. ONBOOT=yes
  11. BOOTPROTO=none
  12. USERCTL=no
  13. BONDING_OPTS="<bonding parameters separated by spaces>"
  14. 3. After the channel bonding interface is created, the network interfaces to be bound together must be configured by adding the MASTER= and SLAVE= directives to their configuration files. The configuration files for each of the channel-bonded interfaces can be nearly identical.  For example, if two Ethernet interfaces are being channel bonded, both eth0 and eth1 may look like the following example:
  15. DEVICE=eth<N>
  16. BOOTPROTO=none
  17. ONBOOT=yes
  18. MASTER=bond0
  19. SLAVE=yes
  20. USERCTL=no
  21. In this example, replace <N> with the numerical value for the interface.
  22. 4. Restart the service network and make the bond0 up.
  23. service network restart
  24. *Note :*
  25. Parameters for the bonding kernel module must be specified as a space-separated list in the BONDING_OPTS="<bonding parameters>"  directive in the ifcfg-bond<N>  interface file. Do not specify options for the bonding device in /etc/modprobe.d/<bonding>.conf, or in the deprecated /etc/modprobe.conf file.
復(fù)制代碼
按RH的方式來吧,試試。路由盡量別寫RC.LOCAL,這文件只在開機(jī)時(shí)候執(zhí)行一次。其他時(shí)候網(wǎng)卡一重啟就丟路由了。建議路由寫到配置文件里。

論壇徽章:
1
操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-06-20 06:20:00
4 [報(bào)告]
發(fā)表于 2013-09-09 16:16 |只看該作者
chenyx 發(fā)表于 2013-09-09 15:42
去掉rc.local里面的內(nèi)容呢?

謝謝
去掉也不行的,只是少了bond0的這條路由,夸網(wǎng)段直接不通了。

論壇徽章:
1
操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-06-20 06:20:00
5 [報(bào)告]
發(fā)表于 2013-09-09 16:37 |只看該作者
補(bǔ)充一下:
正常的機(jī)器上 eth0和eth1 都是沒有IP地址的。
# ifconfig
bond0     Link encap:Ethernet  HWaddr 34:40:B5:CF:F0:5A  
          inet addr:192.168.3.51  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::3640:b5ff:fecf:f05a/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:285 errors:0 dropped:0 overruns:0 frame:0
          TX packets:215 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:22316 (21.7 KiB)  TX bytes:22055 (21.5 KiB)

eth0      Link encap:Ethernet  HWaddr 34:40:B5:CF:F0:5A  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:274 errors:0 dropped:0 overruns:0 frame:0
          TX packets:215 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:21810 (21.2 KiB)  TX bytes:22055 (21.5 KiB)

eth1      Link encap:Ethernet  HWaddr 34:40:B5:CF:F0:5A  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:506 (506.0 b)  TX bytes:0 (0.0 b)

不正常的機(jī)器: eth0和eth1 都是有IP地址的。
# ifconfig
bond0     Link encap:Ethernet  HWaddr 34:40:B5:CF:F3:BA  
          inet addr:192.168.3.55  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::3640:b5ff:fecf:f3ba/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:53321 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31784 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3082003 (2.9 MiB)  TX bytes:2318806 (2.2 MiB)

eth0      Link encap:Ethernet  HWaddr 34:40:B5:CF:F3:BA  
          inet addr:192.168.3.55  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:42207 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31784 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2480752 (2.3 MiB)  TX bytes:2318806 (2.2 MiB)

eth1      Link encap:Ethernet  HWaddr 34:40:B5:CF:F3:BA  
          inet addr:192.168.3.55  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:11114 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:601251 (587.1 KiB)  TX bytes:0 (0.0 b)

論壇徽章:
381
CU十二周年紀(jì)念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大;照
日期:2013-03-13 15:38:15CU大;照
日期:2013-03-13 15:38:52CU大;照
日期:2013-03-14 14:08:55CU大;照
日期:2013-04-17 11:17:19CU大;照
日期:2013-04-17 11:17:32CU大;照
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大;照
日期:2013-04-17 11:17:52CU大;照
日期:2013-04-17 11:17:56
6 [報(bào)告]
發(fā)表于 2013-09-09 16:57 |只看該作者
這個(gè)就讓人費(fèi)解了.
看你的ifconfig的輸出,所有的mac都是一樣的,按道理bond已經(jīng)成功了.為什么ethX還會(huì)被設(shè)置上ip呢,奇怪
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(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ū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP