Настройка инета на фряхе

Discussion in 'Linux, Freebsd, *nix' started by OSW, 11 Jun 2010.

  1. OSW

    OSW Elder - Старейшина

    Joined:
    12 Jul 2007
    Messages:
    325
    Likes Received:
    56
    Reputations:
    7
    Ось: FreeBSD 8.0
    Инет: PPPoE по витой паре.
    Сервак: комп с 2-мя сетевухами: nfe0(смотрит в локалку), rl0 (смотрит в инет).

    rc.conf

    Code:
    ifconfig_nfe0="192.168.0.1"
    ifconfig_rl0="inet 92.xxx.xx.xx netmask 255.255.255.255"
    gateway_enable="YES"
      ppp_enable="YES"  
    ppp_mode="ddial"  
    ppp_nat="YES"  
    ppp_profile="provider"
    default_gateway="92.xxx.xx.xx"
    
    ppp.conf

    Code:
    default:    set log Phase tun command 
    # you can add more detailed logging if you wish  
    set ifaddr 10.0.0.1/0 10.0.0.2/0  
    provider:    
    set device PPPoE:rl0    
    set authname ЛОГИН    
    set authkey ПАРОЛЬ    
    set dial    
    set login    
    add default HISADDR
    По итогу:
    Code:
     
    1# ifconfig
    nfe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
            options=8<VLAN_MTU>
            ether 00:50:8d:63:0a:a9
            inet 192.168.0.209 netmask 0xffffff00 broadcast 192.168.0.255
            media: Ethernet autoselect (100baseTX <full-duplex>)
            status: active
    rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
            options=8<VLAN_MTU>
            ether 00:14:78:25:38:28
            inet 92.241.102.14 netmask 0xffffffff broadcast 92.241.102.14
            media: Ethernet autoselect (none)
            status: no carrier
    plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
            options=3<RXCSUM,TXCSUM>
            inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
            inet6 ::1 prefixlen 128
            inet 127.0.0.1 netmask 0xff000000
    tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500
            Opened by PID 390
    
    /etc/resolv.conf - здесь прописал dns вида: nameserver 92.xxx.xx.xx

    Инета нет нифига. Пинги не идут ни до www.ya.ru (пишет ping: cannot resolve www.ya.ru: Host name lookup failure), ни до 83.170.209.25 (пишет: ping: send to: no route to host).
    При загрузке отчетливо вижу где-то - Network is unreachable.

    Я начинающий в познавании фряхи, так что ногами не бить) От гугля уже опухла голова.
     
    #1 OSW, 11 Jun 2010
    Last edited: 11 Jun 2010
  2. POS_troi

    POS_troi Elder - Старейшина

    Joined:
    1 Dec 2006
    Messages:
    1,569
    Likes Received:
    466
    Reputations:
    108
    логи ppp в студию


    Также попробуй привести ppp.conf к такому виду
    PHP:
    default:
      
    set log Phase tun command  
      set ifaddr 0 0
    provider
    :
      
    set device PPPoE:rl0
      set authname YOURLOGINNAME
      set authkey YOURPASSWORD
      set dial
      set login
      add 
    default HISADDR

    Ну и соответственно в консольке

    PHP:
    ppp -ddial provider
    кстати

    что находится на другом конце кабеля?
     
    #2 POS_troi, 11 Jun 2010
    Last edited: 11 Jun 2010
  3. OSW

    OSW Elder - Старейшина

    Joined:
    12 Jul 2007
    Messages:
    325
    Likes Received:
    56
    Reputations:
    7
    Логи ppp:

    Code:
    Jun 11 17:31:03 1 ppp[1034]: tun1: Phase: deflink: Disconnected!
    Jun 11 17:31:03 1 ppp[1057]: tun2: Phase: deflink: Disconnected!
    Jun 11 17:31:03 1 ppp[1034]: tun1: Phase: deflink: lcp -> logout
    Jun 11 17:31:03 1 ppp[1057]: tun2: Phase: deflink: lcp -> logout
    Jun 11 17:31:03 1 ppp[1034]: tun1: Phase: deflink: Disconnected!
    Jun 11 17:31:03 1 ppp[1057]: tun2: Phase: deflink: Disconnected!
    Jun 11 17:31:03 1 ppp[1034]: tun1: Phase: deflink: logout -> hangup
    Jun 11 17:31:03 1 ppp[1057]: tun2: Phase: deflink: logout -> hangup
    Jun 11 17:31:03 1 ppp[1034]: tun1: Phase: deflink: Connect time: 17 secs: 100 octets in, 130 octets out
    Jun 11 17:31:03 1 ppp[1057]: tun2: Phase: deflink: Connect time: 17 secs: 100 octets in, 130 octets out
    Jun 11 17:31:03 1 ppp[1034]: tun1: Phase: deflink: 42 packets in, 45 packets out
    Jun 11 17:31:03 1 ppp[1057]: tun2: Phase: deflink: 15 packets in, 15 packets out
    Jun 11 17:31:03 1 ppp[1034]: tun1: Phase:  total 13 bytes/sec, peak 18 bytes/sec on Fri Jun 11 17:30:52 2010
    Jun 11 17:31:03 1 ppp[1057]: tun2: Phase:  total 13 bytes/sec, peak 18 bytes/sec on Fri Jun 11 17:30:52 2010
    Jun 11 17:31:03 1 ppp[1034]: tun1: Phase: deflink: hangup -> opening
    Jun 11 17:31:03 1 ppp[1057]: tun2: Phase: deflink: hangup -> opening
    Jun 11 17:31:03 1 ppp[1034]: tun1: Phase: deflink: Enter pause (3) for redialing.
    Jun 11 17:31:03 1 ppp[1057]: tun2: Phase: deflink: Enter pause (3) for redialing.
    Jun 11 17:31:06 1 ppp[390]: tun0: Phase: deflink: Connected!
    Jun 11 17:31:06 1 ppp[390]: tun0: Phase: deflink: opening -> dial
    Jun 11 17:31:06 1 ppp[390]: tun0: Phase: deflink: dial -> carrier
    Jun 11 17:31:06 1 ppp[1057]: tun2: Phase: deflink: Connected!
    Jun 11 17:31:06 1 ppp[1034]: tun1: Phase: deflink: opening -> dial
    Jun 11 17:31:06 1 ppp[1057]: tun2: Phase: deflink: opening -> dial
    Jun 11 17:31:06 1 ppp[1034]: tun1: Phase: deflink: dial -> carrier
    Jun 11 17:31:06 1 ppp[1057]: tun2: Phase: deflink: dial -> carrier
    Jun 11 17:31:08 1 ppp[390]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "SR6602-ATs5000fe27f8b45")
    Jun 11 17:31:08 1 ppp[390]: tun0: Phase: Received NGM_PPPOE_SESSIONID
    Jun 11 17:31:08 1 ppp[390]: tun0: Phase: Received NGM_PPPOE_SUCCESS
    Jun 11 17:31:08 1 ppp[390]: tun0: Phase: deflink: carrier -> login
    Jun 11 17:31:08 1 ppp[390]: tun0: Phase: deflink: login -> lcp
    Jun 11 17:31:08 1 ppp[390]: tun0: Warning: deflink: Oops: Got 18 bytes but 50 byte payload - dropped
    Jun 11 17:31:08 1 ppp[1034]: tun1: Phase: Received NGM_PPPOE_ACNAME (hook "SR6602-ATs5000fe27f8b45")
    Jun 11 17:31:08 1 ppp[1057]: tun2: Phase: Received NGM_PPPOE_ACNAME (hook "SR6602-ATs5000fe27f8b45")
    Jun 11 17:31:09 1 ppp[390]: tun0: Warning: deflink: Reducing configured MRU from 1500 to 1492
    Jun 11 17:31:11 1 ppp[390]: tun0: Warning: deflink: Oops: Got 18 bytes but 50 byte payload - dropped
    Jun 11 17:31:11 1 ppp[1034]: tun1: Phase: deflink: Disconnected!
    Jun 11 17:31:11 1 ppp[1034]: tun1: Phase: deflink: carrier -> hangup
    Jun 11 17:31:11 1 ppp[1034]: tun1: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
    Jun 11 17:31:11 1 ppp[1034]: tun1: Phase: deflink: 42 packets in, 45 packets out
    Jun 11 17:31:11 1 ppp[1034]: tun1: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Fri Jun 11 17:31:06 2010
    Jun 11 17:31:11 1 ppp[1034]: tun1: Phase: deflink: hangup -> opening
    Jun 11 17:31:11 1 ppp[1034]: tun1: Phase: deflink: Enter pause (30) for redialing.
    Jun 11 17:31:11 1 ppp[1057]: tun2: Phase: deflink: Disconnected!
    Jun 11 17:31:11 1 ppp[1057]: tun2: Phase: deflink: carrier -> hangup
    Jun 11 17:31:11 1 ppp[1057]: tun2: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out
    Jun 11 17:31:11 1 ppp[1057]: tun2: Phase: deflink: 15 packets in, 15 packets out
    Jun 11 17:31:11 1 ppp[1057]: tun2: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Fri Jun 11 17:31:06 2010
    Jun 11 17:31:11 1 ppp[1057]: tun2: Phase: deflink: hangup -> opening
    Jun 11 17:31:11 1 ppp[1057]: tun2: Phase: deflink: Enter pause (30) for redialing.
    Jun 11 17:31:14 1 ppp[390]: tun0: Warning: deflink: Oops: Got 18 bytes but 50 byte payload - dropped
    Jun 11 17:31:20 1 last message repeated 2 times
    Jun 11 17:31:23 1 ppp[390]: tun0: Phase: Received NGM_PPPOE_CLOSE
    Jun 11 17:31:23 1 ppp[390]: tun0: Phase: deflink: Device disconnected
    Jun 11 17:31:23 1 ppp[390]: tun0: Phase: deflink: Disconnected!
    Jun 11 17:31:23 1 ppp[390]: tun0: Phase: deflink: lcp -> logout
    Jun 11 17:31:23 1 ppp[390]: tun0: Phase: deflink: Disconnected!
    Jun 11 17:31:23 1 ppp[390]: tun0: Phase: deflink: logout -> hangup
    Jun 11 17:31:23 1 ppp[390]: tun0: Phase: deflink: Connect time: 17 secs: 100 octets in, 130 octets out
    Jun 11 17:31:23 1 ppp[390]: tun0: Phase: deflink: 97 packets in, 100 packets out
    Jun 11 17:31:23 1 ppp[390]: tun0: Phase:  total 13 bytes/sec, peak 18 bytes/sec on Fri Jun 11 17:31:12 2010
    Jun 11 17:31:23 1 ppp[390]: tun0: Phase: deflink: hangup -> opening
    Jun 11 17:31:23 1 ppp[390]: tun0: Phase: deflink: Enter pause (3) for redialing.
    
     
  4. OSW

    OSW Elder - Старейшина

    Joined:
    12 Jul 2007
    Messages:
    325
    Likes Received:
    56
    Reputations:
    7

    Все привел к нужному виду.
    На другом конце кабеля - хз. Я знаю, что в кабинет проведен инет по витухе, есть логин и пароль. А что там стоит - хз.
     
  5. POS_troi

    POS_troi Elder - Старейшина

    Joined:
    1 Dec 2006
    Messages:
    1,569
    Likes Received:
    466
    Reputations:
    108
    Ну так там может быть и VPN . Выясняй.
     
  6. OSW

    OSW Elder - Старейшина

    Joined:
    12 Jul 2007
    Messages:
    325
    Likes Received:
    56
    Reputations:
    7
    http://www.citycomm.ru/support/detail.php?ID=82 - отсюда берем инет. ВПНа нет.
    Настройки сабжевые: