Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2014-07-09 20:06:50

  morfik - Cenzor wirtualnego świata

morfik
Cenzor wirtualnego świata
Skąd: ze WSI
Zarejestrowany: 2011-09-15
Serwis

Bondowanie interfejsów

Bawił się ktoś spinaniem kilku interfejsów w interfejs bond ? Mi udało się niby zrobić taką konfigurację:

Kod:

auto bond0
iface bond0 inet static
    address 192.168.1.150
    network 192.168.1.0/24
    netmask 255.255.255.0
    broadcast 192.168.1.255
    gateway 192.168.1.1
    bond-mode active-backup
    bond-miimon 150
    bond-downdelay 300
    bond-updelay 300
    bond-primary eth1
    bond-primary-reselect always
    bond-slaves eth1 wlan0
#    bond-fail-over-mac active
    bond-fail-over-mac none
    post-up ip route change default via 192.168.1.1 dev bond0 initcwnd 16 initrwnd 16
    post-up ip neighbor add 192.168.1.1 lladdr e8:94:f6:68:79:f0 dev bond0 nud permanent

allow-bond0 wlan0
iface wlan0 inet manual
    bond-give-a-chance 10
    wpa-driver nl80211
    wpa-debug-level -1
    wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
    wpa-bridge bond0

Przełącza prawidłowo, ping nawet nie zdąży dropnąć przy przełączaniu:

Kod:

morfik:~$ cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth1 (primary_reselect always)
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 150
Up Delay (ms): 300
Down Delay (ms): 300

Slave Interface: eth1
MII Status: up
Speed: 100 Mbps
Duplex: full
Link Failure Count: 2
Permanent HW addr: 3c:4a:92:00:4c:5b
Slave queue ID: 0

Slave Interface: wlan0
MII Status: up
Speed: Unknown
Duplex: Unknown
Link Failure Count: 1
Permanent HW addr: c0:cb:38:01:f0:f5
Slave queue ID: 0
morfik:~$

I tu log:

Kod:

Jul  9 19:58:05 morfikownia kernel: [ 2172.398669] r8169 0000:02:00.0 eth1: link down
Jul  9 19:58:05 morfikownia kernel: [ 2172.487354] bonding: bond0: link status down for active interface eth1, disabling it in 300 ms.
Jul  9 19:58:06 morfikownia kernel: [ 2172.791358] bonding: bond0: link status definitely down for interface eth1, disabling it
Jul  9 19:58:06 morfikownia kernel: [ 2172.791366] bonding: bond0: making interface wlan0 the new active one.
Jul  9 19:58:09 morfikownia kernel: [ 2175.874022] r8169 0000:02:00.0 eth1: link up
Jul  9 19:58:09 morfikownia kernel: [ 2175.983353] bonding: bond0: link status up for interface eth1, enabling it in 300 ms.
Jul  9 19:58:09 morfikownia kernel: [ 2176.287351] bonding: bond0: link status definitely up for interface eth1, 100 Mbps full duplex.
Jul  9 19:58:09 morfikownia kernel: [ 2176.287359] bonding: bond0: making interface eth1 the new active one.

Jul  9 19:58:17 morfikownia kernel: [ 2183.855014] wlan0: deauthenticated from e8:94:f6:68:79:ef (Reason: 3)
Jul  9 19:58:17 morfikownia kernel: [ 2183.867399] brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: disassociated
Jul  9 19:58:17 morfikownia kernel: [ 2183.867412] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: false (implement)
Jul  9 19:58:17 morfikownia wpa_action: WPA_IFACE=wlan0 WPA_ACTION=DISCONNECTED
Jul  9 19:58:17 morfikownia wpa_action: WPA_ID=0 WPA_ID_STR= WPA_CTRL_DIR=/var/run/wpa_supplicant
Jul  9 19:58:17 morfikownia kernel: [ 2183.879726] cfg80211: Calling CRDA to update world regulatory domain
Jul  9 19:58:17 morfikownia wpa_action: ifdown wlan0
Jul  9 19:58:17 morfikownia wpa_action: removing sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
Jul  9 19:58:17 morfikownia kernel: [ 2183.887284] bonding: bond0: link status down for backup interface wlan0, disabling it in 300 ms.
Jul  9 19:58:17 morfikownia kernel: [ 2184.191314] bonding: bond0: link status definitely down for interface wlan0, disabling it

Jul  9 19:58:23 morfikownia kernel: [ 2190.631810] wlan0: authenticate with e8:94:f6:68:79:ef
Jul  9 19:58:23 morfikownia kernel: [ 2190.633221] wlan0: send auth to e8:94:f6:68:79:ef (try 1/3)
Jul  9 19:58:23 morfikownia kernel: [ 2190.635149] wlan0: authenticated
Jul  9 19:58:23 morfikownia kernel: [ 2190.639330] wlan0: associate with e8:94:f6:68:79:ef (try 1/3)
Jul  9 19:58:23 morfikownia kernel: [ 2190.643686] wlan0: RX AssocResp from e8:94:f6:68:79:ef (capab=0x431 status=0 aid=1)
Jul  9 19:58:23 morfikownia kernel: [ 2190.644376] brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: associated
Jul  9 19:58:23 morfikownia kernel: [ 2190.644380] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: true (implement)
Jul  9 19:58:23 morfikownia kernel: [ 2190.644389] wlan0: associated
Jul  9 19:58:23 morfikownia wpa_action: WPA_IFACE=wlan0 WPA_ACTION=CONNECTED
Jul  9 19:58:23 morfikownia wpa_action: WPA_ID=0 WPA_ID_STR= WPA_CTRL_DIR=/var/run/wpa_supplicant
Jul  9 19:58:23 morfikownia wpa_action: network settings not defined for default in /etc/network/interfaces
Jul  9 19:58:23 morfikownia wpa_action: ifup wlan0=default
Jul  9 19:58:23 morfikownia wpa_action: creating sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
Jul  9 19:58:23 morfikownia wpa_action: bssid=e8:94:f6:68:79:ef
Jul  9 19:58:23 morfikownia wpa_action: ssid=Winter Is Coming
Jul  9 19:58:23 morfikownia wpa_action: id=0
Jul  9 19:58:23 morfikownia wpa_action: mode=station
Jul  9 19:58:23 morfikownia wpa_action: pairwise_cipher=CCMP
Jul  9 19:58:23 morfikownia wpa_action: group_cipher=CCMP
Jul  9 19:58:23 morfikownia wpa_action: key_mgmt=WPA2-PSK
Jul  9 19:58:23 morfikownia wpa_action: wpa_state=COMPLETED
Jul  9 19:58:23 morfikownia wpa_action: address=3c:4a:92:00:4c:5b
Jul  9 19:58:23 morfikownia kernel: [ 2190.727303] bonding: bond0: link status up for interface wlan0, enabling it in 300 ms.
Jul  9 19:58:24 morfikownia kernel: [ 2191.031315] bonding: bond0: link status definitely up for interface wlan0, 0 Mbps full duplex.

Jest tylko taki problem, że tam widnieje np taka linijka:

Kod:

wpa_action: network settings not defined for default in /etc/network/interfaces

Jak tutaj zdefiniować te profile dla wifi? I w sumie jak zaciągnąć do pomocy guessnet dla eth1 ? Coś na wzór: http://dug.net.pl/tekst/288/reczna_konfiguracja_wi_fi/ .

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Nas ludzie lubią po prostu, a nie klikając w przyciski ;-)

[ Generated in 0.012 seconds, 9 queries executed ]

Informacje debugowania

Time (s) Query
0.00009 SET CHARSET latin2
0.00008 SET NAMES latin2
0.00073 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.145.110.99' WHERE u.id=1
0.00246 REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.145.110.99', 1732819901)
0.00395 SELECT * FROM punbb_online WHERE logged<1732819601
0.00098 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=26110 AND t.moved_to IS NULL
0.00005 SELECT search_for, replace_with FROM punbb_censoring
0.00070 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=26110 ORDER BY p.id LIMIT 0,25
0.00126 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=26110
Total query time: 0.0103 s