Хотите сделать посильный вклад в развитие Ubuntu и русскоязычного сообщества? Помогите нам с документацией!
0 Пользователей и 1 Гость просматривают эту тему.
remalex@GServer:~$ sudo /etc/init.d/networking restart[sudo] password for remalex: * Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces * Reconfiguring network interfaces... Plugin rp-pppoe.so loaded.PPP session is 11464Connected to 00:23:5e:00:5b:20 via interface eth0Using interface ppp0Connect: ppp0 <--> eth0PAP authentication succeededpeer from calling number 00:23:5E:00:5B:20 authorizedlocal IP address 79.104.213.41remote IP address 195.239.252.146primary DNS address 194.67.2.114secondary DNS address 194.67.1.154ssh stop/waitingssh start/running, process 1429ssh stop/waitingssh start/running, process 1468Waiting for br0 to get ready (MAXWAIT is 32 seconds).ssh stop/waitingssh start/running, process 1606 [ OK ]
Waiting for br0 to get ready (MAXWAIT is 32 seconds).
* Reconfiguring network interfaces... Plugin rp-pppoe.so loaded.PPP session is 11464Connected to 00:23:5e:00:5b:20 via interface eth0Using interface ppp0Connect: ppp0 <--> eth0PAP authentication succeededpeer from calling number 00:23:5E:00:5B:20 authorizedlocal IP address 79.104.213.41remote IP address 195.239.252.146primary DNS address 194.67.2.114secondary DNS address 194.67.1.154
Осталось понять почему инет сразу не подключается.
remalex@GServer:~$ ifconfigbr0 Link encap:Ethernet HWaddr 54:e6:fc:81:be:2f inet addr:10.0.5.1 Bcast:0.0.0.0 Mask:255.255.255.0 inet6 addr: fe80::56e6:fcff:fe81:be2f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:460 errors:0 dropped:0 overruns:0 frame:0 TX packets:298 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:39036 (39.0 KB) TX bytes:37327 (37.3 KB)eth0 Link encap:Ethernet HWaddr 00:0f:ea:61:99:5f inet6 addr: fe80::20f:eaff:fe61:995f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:116 errors:0 dropped:0 overruns:0 frame:0 TX packets:9 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:33398 (33.3 KB) TX bytes:684 (684.0 B) Interrupt:21eth1 Link encap:Ethernet HWaddr 54:e6:fc:81:be:2f UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:441 errors:0 dropped:0 overruns:0 frame:0 TX packets:286 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:41512 (41.5 KB) TX bytes:37909 (37.9 KB) Interrupt:19 Base address:0x8000lo 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:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:240 (240.0 B) TX bytes:240 (240.0 B)mon.wlan0 Link encap:UNSPEC HWaddr F4-EC-38-A4-AD-F9-30-30-00-00-00-00-00-00-00-00 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:24 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:2090 (2.0 KB) TX bytes:0 (0.0 B)wlan0 Link encap:Ethernet HWaddr f4:ec:38:a4:ad:f9 inet6 addr: fe80::f6ec:38ff:fea4:adf9/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:77 errors:0 dropped:0 overruns:0 frame:0 TX packets:95 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:8589 (8.5 KB) TX bytes:12326 (12.3 KB)
br0 Link encap:Ethernet HWaddr 54:e6:fc:81:be:2f inet addr:10.0.5.1 Bcast:0.0.0.0 Mask:255.255.255.0 inet6 addr: fe80::56e6:fcff:fe81:be2f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:287 errors:0 dropped:0 overruns:0 frame:0 TX packets:550 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:28327 (28.3 KB) TX bytes:104349 (104.3 KB)eth0 Link encap:Ethernet HWaddr 00:0f:ea:61:99:5f inet6 addr: fe80::20f:eaff:fe61:995f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1233 errors:0 dropped:0 overruns:0 frame:0 TX packets:737 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1021735 (1.0 MB) TX bytes:132893 (132.8 KB) Interrupt:21eth1 Link encap:Ethernet HWaddr 54:e6:fc:81:be:2f UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:984 errors:0 dropped:0 overruns:0 frame:0 TX packets:1092 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:95299 (95.2 KB) TX bytes:169798 (169.7 KB) Interrupt:19 Base address:0x8000lo 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:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:480 (480.0 B) TX bytes:480 (480.0 B)mon.wlan0 Link encap:UNSPEC HWaddr F4-EC-38-A4-AD-F9-30-30-00-00-00-00-00-00-00-00 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:38 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:2930 (2.9 KB) TX bytes:0 (0.0 B)ppp0 Link encap:Point-to-Point Protocol inet addr:79.104.213.41 P-t-P:195.239.252.146 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1 RX packets:975 errors:0 dropped:0 overruns:0 frame:0 TX packets:719 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:927029 (927.0 KB) TX bytes:112879 (112.8 KB)wlan0 Link encap:Ethernet HWaddr f4:ec:38:a4:ad:f9 inet6 addr: fe80::f6ec:38ff:fea4:adf9/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:498 errors:0 dropped:0 overruns:0 frame:0 TX packets:321 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:39413 (39.4 KB) TX bytes:35395 (35.3 KB)
#sleep 30 && /etc/init.d/networking restart &#exit 0
Цитировать* Reconfiguring network interfaces... Plugin rp-pppoe.so loaded.PPP session is 11464Connected to 00:23:5e:00:5b:20 via interface eth0Using interface ppp0Connect: ppp0 <--> eth0PAP authentication succeededpeer from calling number 00:23:5E:00:5B:20 authorizedlocal IP address 79.104.213.41remote IP address 195.239.252.146primary DNS address 194.67.2.114secondary DNS address 194.67.1.154ЦитироватьОсталось понять почему инет сразу не подключается.повторю. судя по логу - подключается. ifconfig и можешь проверить появился интерфейс.
редактор /etc/rc.localКод: [Выделить]#sleep 30 && /etc/init.d/networking restart &#exit 030 секунд рестарт
remalex@GServer:~$ ifconfigbr0 Link encap:Ethernet HWaddr 54:e6:fc:81:be:2f inet addr:10.0.5.1 Bcast:0.0.0.0 Mask:255.255.255.0 inet6 addr: fe80::56e6:fcff:fe81:be2f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:481 errors:0 dropped:0 overruns:0 frame:0 TX packets:612 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:32017 (32.0 KB) TX bytes:88863 (88.8 KB)eth0 Link encap:Ethernet HWaddr 00:0f:ea:61:99:5f inet6 addr: fe80::20f:eaff:fe61:995f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:171 errors:0 dropped:0 overruns:0 frame:0 TX packets:9 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:44533 (44.5 KB) TX bytes:684 (684.0 B) Interrupt:21eth1 Link encap:Ethernet HWaddr 54:e6:fc:81:be:2f UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:485 errors:0 dropped:0 overruns:0 frame:0 TX packets:613 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:39874 (39.8 KB) TX bytes:88861 (88.8 KB) Interrupt:19 Base address:0x8000lo 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:4 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:240 (240.0 B) TX bytes:240 (240.0 B)mon.wlan0 Link encap:UNSPEC HWaddr F4-EC-38-A4-AD-F9-30-30-00-00-00-00-00-00-00-00 UP BROADCAST RUNNING MULTICAST MTU:1500 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:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)wlan0 Link encap:Ethernet HWaddr f4:ec:38:a4:ad:f9 inet6 addr: fe80::f6ec:38ff:fea4:adf9/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:7 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:656 (656.0 B)
remalex@GServer:~$ syslogNo command 'syslog' found, did you mean: Command 'dsyslog' from package 'dsyslog' (universe) Command 'syslogd' from package 'sysklogd' (universe) Command 'syslogd' from package 'inetutils-syslogd' (universe) Command 'syslogd' from package 'busybox-syslogd' (universe)syslog: command not found
remalex@GServer:~$ messagesThe program 'messages' is currently not installed. You can install it by typing:sudo apt-get install mailutils
auto loiface lo inet loopbackpost-up iptables-restore </etc/iptables.confauto dsl-provideriface dsl-provider inet ppppre-up /sbin/ifconfig eth0 up # line maintained by pppoeconfprovider dsl-providerauto eth0iface eth0 inet manualauto br0iface br0 inet staticaddress 10.0.5.1netmask 255.255.255.0bridge_ports eth1
remalex@GServer:~$ syslog
remalex@GServer:~$ cat /var/log/syslog |egrep 'ppp|pppoe'
remalex@GServer:~$ cat /var/log/syslog |egrep 'ppp|pppoe'Oct 27 09:57:26 GServer pppd[908]: Timeout waiting for PADO packetsOct 27 09:57:26 GServer pppd[908]: Unable to complete PPPoE DiscoveryOct 27 09:57:26 GServer pppd[908]: Terminating on signal 15Oct 27 09:57:26 GServer pppd[908]: Exit.Oct 27 21:16:39 GServer pppd[873]: Plugin rp-pppoe.so loaded.Oct 27 21:16:39 GServer pppd[873]: pppd 2.4.5 started by root, uid 0Oct 27 21:24:09 GServer pppd[1414]: Plugin rp-pppoe.so loaded.Oct 27 21:24:09 GServer pppd[1414]: pppd 2.4.5 started by remalex, uid 0Oct 27 21:24:09 GServer pppd[1414]: PPP session is 19788Oct 27 21:24:09 GServer pppd[1414]: Connected to 00:23:5e:00:5b:20 via interface eth0Oct 27 21:24:09 GServer pppd[1414]: Using interface ppp0Oct 27 21:24:09 GServer pppd[1414]: Connect: ppp0 <--> eth0Oct 27 21:24:09 GServer pppd[1414]: PAP authentication succeededOct 27 21:24:09 GServer pppd[1414]: peer from calling number 00:23:5E:00:5B:20 authorizedOct 27 21:24:09 GServer pppd[1414]: local IP address 79.104.213.41Oct 27 21:24:09 GServer pppd[1414]: remote IP address 195.239.252.146Oct 27 21:24:09 GServer pppd[1414]: primary DNS address 194.67.2.114Oct 27 21:24:09 GServer pppd[1414]: secondary DNS address 194.67.1.154Oct 27 22:03:25 GServer pppd[886]: Plugin rp-pppoe.so loaded.Oct 27 22:03:25 GServer pppd[886]: pppd 2.4.5 started by root, uid 0
auto loiface lo inet loopbackpost-up iptables-restore </etc/iptables.confauto dsl-provideriface dsl-provider inet ppppre-up /sbin/ifconfig eth0 up # line maintained by pppoeconfprovider dsl-providerauto eth0iface eth0 inet manualauto br0iface br0 inet staticaddress 10.0.5.1netmask 255.255.255.0bridge_ports eth1auto dsl-provideriface dsl-provider inet ppppre-up /sbin/ifconfig eth0 up # line maintained by pppoeconfprovider dsl-provider
Страница сгенерирована за 0.023 секунд. Запросов: 21.