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  2018-05-21 21:40:29

  trzczy - Użytkownik

trzczy
Użytkownik
Zarejestrowany: 2016-12-16

Coś nie tak z dzieleniem internetu przez bridge

Na debianie stretch robię router. Mam internet z modemu usb Huawey E3131. Kiedy jest tylko konfiguracja dla modemu, to internet działa i ping jest ok 60 czyli ok.

Gorzej jest kiedy dodam w interfaces konfigurację dla rotera, wtedy ten ping jest ok. 300, a karty ethernet i wifi nie działają.

I właśnie o konfiguracji routera chcę mówić. Zainstalowałem hostapd i bridge-utils. Ale router nie działa. Co by mogło by c przyczyną, jeśli konfiguracja i dmesg wygląda tak:

Kod:

root@debian:/home/g# ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp2s8: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast master br0 state DOWN group default qlen 1000
    link/ether 00:30:4f:2d:d8:6d brd ff:ff:ff:ff:ff:ff
3: enp0s5: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast master br0 state DOWN group default qlen 1000
    link/ether 00:13:8f:cf:79:66 brd ff:ff:ff:ff:ff:ff
4: wwx582c80139263: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 58:2c:80:13:92:63 brd ff:ff:ff:ff:ff:ff
5: wlp2s6: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:0e:8e:7e:1e:ce brd ff:ff:ff:ff:ff:ff
6: br0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 00:13:8f:cf:79:66 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.10/24 brd 192.168.0.255 scope global br0
       valid_lft forever preferred_lft forever
7: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 3
    link/ppp 
    inet 10.240.193.143 peer 10.64.64.64/32 scope global ppp0
       valid_lft forever preferred_lft forever
root@debian:/home/g#

Kod:

[   18.545693] usbcore: registered new interface driver cdc_ncm
[   18.567309] usbcore: registered new interface driver cdc_wdm
[   18.624931] huawei_cdc_ncm 1-1:1.1: MAC-Address: 58:2c:80:13:92:63
[   18.624941] huawei_cdc_ncm 1-1:1.1: setting rx_max = 16384
[   18.625175] huawei_cdc_ncm 1-1:1.1: setting tx_max = 16384
[   18.625295] huawei_cdc_ncm 1-1:1.1: NDP will be placed at end of frame for this device.
[   18.625498] huawei_cdc_ncm 1-1:1.1: cdc-wdm0: USB WDM device
[   18.626017] huawei_cdc_ncm 1-1:1.1 wwan0: register 'huawei_cdc_ncm' at usb-0000:00:02.2-1, Huawei CDC NCM device, 58:2c:80:13:92:63
[   18.626131] usbcore: registered new interface driver huawei_cdc_ncm
[   18.758304] PCI Interrupt Link [LNKC] enabled at IRQ 18
[   18.758563] ath5k 0000:02:06.0: registered as 'phy0'
[   19.124391] usbcore: registered new interface driver usbserial_generic
[   19.124435] usbserial: USB Serial support registered for generic
[   19.287530] usbcore: registered new interface driver option
[   19.287573] usbserial: USB Serial support registered for GSM modem (1-port)
[   19.287739] option 1-1:1.0: GSM modem (1-port) converter detected
[   19.291363] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[   19.291557] option 1-1:1.2: GSM modem (1-port) converter detected
[   19.291865] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[   19.291946] option 1-1:1.3: GSM modem (1-port) converter detected
[   19.292296] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[   19.367005] input: PC Speaker as /devices/platform/pcspkr/input/input5
[   19.493267] ath: EEPROM regdomain: 0x10
[   19.493273] ath: EEPROM indicates we should expect a direct regpair map
[   19.493277] ath: Country alpha2 being used: CO
[   19.493279] ath: Regpair used: 0x10
[   19.968727] huawei_cdc_ncm 1-1:1.1 wwx582c80139263: renamed from wwan0
[   20.054549] ppdev: user-space parallel port driver
[   20.161589] audit: type=1400 audit(1526930136.177:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-soffice" pid=342 comm="apparmor_parser"
[   20.161604] audit: type=1400 audit(1526930136.177:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-soffice//gpg" pid=342 comm="apparmor_parser"
[   20.185902] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   20.186653] ath5k: phy0: Atheros AR2414 chip found (MAC: 0x79, PHY: 0x45)
[   20.395959] audit: type=1400 audit(1526930136.409:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="libreoffice-xpdfimport" pid=362 comm="apparmor_parser"
[   20.608138] Adding 3667964k swap on /dev/sda6.  Priority:-2 extents:1 across:3667964k FS
[   20.874382] audit: type=1400 audit(1526930136.889:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/telepathy/mission-control-5" pid=409 comm="apparmor_parser"
[   20.874401] audit: type=1400 audit(1526930136.889:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/telepathy/telepathy-*" pid=409 comm="apparmor_parser"
[   20.952084] usb 3-4: current rate 30464 is different from the runtime rate 96000
[   20.991113] usb 3-4: Warning! Unlikely big volume range (=8065), cval->res is probably wrong.
[   20.991124] usb 3-4: [9] FU [Mic Playback Volume] ch = 2, val = -6144/1921/1
[   21.021096] usb 3-4: Warning! Unlikely big volume range (=8065), cval->res is probably wrong.
[   21.021108] usb 3-4: [14] FU [CD   Playback Volume] ch = 2, val = -6144/1921/1
[   21.045085] usb 3-4: Warning! Unlikely big volume range (=8065), cval->res is probably wrong.
[   21.045097] usb 3-4: [11] FU [Line Playback Volume] ch = 2, val = -6144/1921/1
[   21.117082] usb 3-4: Warning! Unlikely big volume range (=6928), cval->res is probably wrong.
[   21.117090] usb 3-4: [8] FU [Mic Capture Volume] ch = 2, val = -4096/2832/1
[   21.146088] usb 3-4: Warning! Unlikely big volume range (=6928), cval->res is probably wrong.
[   21.146100] usb 3-4: [2] FU [PCM Capture Volume] ch = 2, val = -4096/2832/1
[   21.177081] usb 3-4: Warning! Unlikely big volume range (=6928), cval->res is probably wrong.
[   21.177090] usb 3-4: [16] FU [CD   Capture Volume] ch = 2, val = -4096/2832/1
[   21.189728] PCI Interrupt Link [LNKD] enabled at IRQ 17
[   21.190240] nouveau 0000:01:00.0: NVIDIA NV34 (034200a2)
[   21.204150] usb 3-4: Warning! Unlikely big volume range (=6928), cval->res is probably wrong.
[   21.204162] usb 3-4: [15] FU [Line Capture Volume] ch = 2, val = -4096/2832/1
[   21.212461] usbcore: registered new interface driver snd-usb-audio
[   21.289648] nouveau 0000:01:00.0: bios: version 04.34.20.18.00
[   21.290949] agpgart-amd64 0000:00:00.0: AGP 3.0 bridge
[   21.290974] agpgart: kworker/0:4 tried to set rate=x12. Setting to AGP3 x8 mode.
[   21.290984] agpgart-amd64 0000:00:00.0: putting AGP V3 device into 8x mode
[   21.291030] nouveau 0000:01:00.0: putting AGP V3 device into 8x mode
[   21.291074] nouveau 0000:01:00.0: tmr: unknown input clock freq
[   21.291540] nouveau 0000:01:00.0: fb: 64 MiB DDR1
[   21.293137] [TTM] Zone  kernel: Available graphics memory: 1796432 kiB
[   21.293140] [TTM] Initializing pool allocator
[   21.293155] [TTM] Initializing DMA pool allocator
[   21.293208] nouveau 0000:01:00.0: DRM: VRAM: 63 MiB
[   21.293212] nouveau 0000:01:00.0: DRM: GART: 64 MiB
[   21.293219] nouveau 0000:01:00.0: DRM: BMP version 5.38
[   21.293226] nouveau 0000:01:00.0: DRM: DCB version 2.2
[   21.293234] nouveau 0000:01:00.0: DRM: DCB outp 00: 01000300 000088b8
[   21.293242] nouveau 0000:01:00.0: DRM: DCB outp 01: 02010310 000088b8
[   21.293248] nouveau 0000:01:00.0: DRM: DCB outp 02: 01010312 00000000
[   21.293254] nouveau 0000:01:00.0: DRM: DCB outp 03: 02020321 00000003
[   21.293636] nouveau 0000:01:00.0: DRM: Loading NV17 power sequencing microcode
[   21.294490] nouveau 0000:01:00.0: DRM: Saving VGA fonts
[   21.357516] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[   21.357521] [drm] Driver supports precise vblank timestamp query.
[   21.360955] nouveau 0000:01:00.0: DRM: MM: using M2MF for buffer copies
[   21.360991] nouveau 0000:01:00.0: DRM: Setting dpms mode 3 on TV encoder (output 3)
[   21.438604] kvm: Nested Virtualization enabled
[   21.476743] nouveau 0000:01:00.0: DRM: allocated 1280x1024 fb: 0x9000, bo 0000000064ca667e
[   21.508811] fbcon: nouveaufb (fb0) is primary device
[   21.594628] MCE: In-kernel MCE decoding enabled.
[   21.675127] EDAC amd64: Node 0: DRAM ECC disabled.
[   21.675131] EDAC amd64: ECC disabled in the BIOS or no ECC capability, module will not load.
                Either enable ECC checking or force module loading by setting 'ecc_enable_override'.
                (Note that use of the override may cause unknown side effects.)
[   21.709915] EDAC amd64: Node 0: DRAM ECC disabled.
[   21.709919] EDAC amd64: ECC disabled in the BIOS or no ECC capability, module will not load.
                Either enable ECC checking or force module loading by setting 'ecc_enable_override'.
                (Note that use of the override may cause unknown side effects.)
[   21.737481] Console: switching to colour frame buffer device 160x64
[   21.738628] nouveau 0000:01:00.0: fb0: nouveaufb frame buffer device
[   21.756153] [drm] Initialized nouveau 1.3.1 20120801 for 0000:01:00.0 on minor 0
[   22.734409] powernow_k8: [Firmware Bug]: No compatible ACPI _PSS objects found.
               [Firmware Bug]: First, make sure Cool'N'Quiet is enabled in the BIOS.
               [Firmware Bug]: If that doesn't help, try upgrading your BIOS.
[   22.773285] powernow_k8: [Firmware Bug]: No compatible ACPI _PSS objects found.
               [Firmware Bug]: First, make sure Cool'N'Quiet is enabled in the BIOS.
               [Firmware Bug]: If that doesn't help, try upgrading your BIOS.
[   23.089288] ath5k 0000:02:06.0 wlp2s6: renamed from wlan0
[   30.622854] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[   30.648514] br0: port 1(enp0s5) entered blocking state
[   30.648522] br0: port 1(enp0s5) entered disabled state
[   30.653383] device enp0s5 entered promiscuous mode
[   30.662155] forcedeth 0000:00:05.0 enp0s5: no link during initialization
[   30.671201] br0: port 2(enp2s8) entered blocking state
[   30.671210] br0: port 2(enp2s8) entered disabled state
[   30.671465] device enp2s8 entered promiscuous mode
[   30.678629] 8139too 0000:02:08.0 enp2s8: link down
[   30.692314] br0: port 2(enp2s8) entered blocking state
[   30.692324] br0: port 2(enp2s8) entered forwarding state
[   30.692603] IPv6: ADDRCONF(NETDEV_UP): br0: link is not ready
[   31.680166] br0: port 2(enp2s8) entered disabled state
[   32.480194] PPP generic driver version 2.4.2
[   32.761569] PPP BSD Compression module registered
[   32.870659] PPP Deflate Compression module registered

Kod:

root@debian:/home/g# cat /etc/hostapd/hostapd.conf
interface=wlp2s6
bridge=br0
driver=nl80211
ssid=hehehe
country_code=PL
ieee80211d=1
hw_mode=g
channel=11
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=aue58g94
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
ctrl_interface=/var/run/hostapd
logger_syslog=-1
logger_syslog_level=-1
logger_stdout=-1
logger_stdout_level=-1
root@debian:/home/g#

Kod:

root@debian:/home/g# cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto ppp0
iface ppp0 inet wvdial

auto wlp2s6
iface wlp2s6 inet manual
    /usr/sbin/hostapd /etc/hostapd/hostapd.conf

auto br0
iface br0 inet static
bridge_ports enp0s5 enp2s8
    address 192.168.0.10
    network 192.168.0.0
    netmask 255.255.255.0
    broadcast 192.168.0.255
    post-up ifup wlp2s6
    pre-down ifdown wlp2s6

Kod:

root@debian:/home/g# cat /etc/wvdial.conf 
[Dialer Defaults]
Modem = /dev/ttyUSB0
Init3 = AT+CGDCONT=1,"IP","internet"
Username = "internet"
Password = "internet"
Phone = "*99#"
Dial Command = ATDTW
Stupid Mode = yes
Dial Attempts = 0
root@debian:/home/g#

Z góry dziękuję

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.006 seconds, 9 queries executed ]

Informacje debugowania

Time (s) Query
0.00008 SET CHARSET latin2
0.00004 SET NAMES latin2
0.00128 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='18.217.208.220' WHERE u.id=1
0.00064 REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.217.208.220', 1732365153)
0.00038 SELECT * FROM punbb_online WHERE logged<1732364853
0.00054 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=30458 AND t.moved_to IS NULL
0.00005 SELECT search_for, replace_with FROM punbb_censoring
0.00121 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=30458 ORDER BY p.id LIMIT 0,25
0.00076 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=30458
Total query time: 0.00498 s