SHARE
TWEET

Untitled

a guest Mar 20th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. > pi@raspberrypi-prism:~ $ uname -a Linux raspberrypi-prism 4.14.79-v7+
  2. > #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux
  3. >
  4. > pi@raspberrypi-prism:~ $ cat /etc/network/interfaces
  5. > # interfaces(5) file used by ifup(8) and ifdown(8)
  6. > #mur pi for sharing wifi over ethernet
  7. > # Please note that this file is written to be used with dhcpcd
  8. > # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
  9. >
  10. > #allow-hotplug eth0  
  11. > #address 192.168.2.1
  12. > #netmask 255.255.255.0
  13. > #network 192.168.2.0
  14. > #broadcast 192.168.2.255
  15. >
  16. > auto enxb827ebd709fc iface enxb827ebd709fc inet manual up ifconfig
  17. > $IFACE 0.0.0.0 up
  18. > #post-up /etc/ppp/pppoe_start
  19. > #post-down /etc/ppp/pppoe_stop
  20. > #down ifconfig $IFACE down
  21. >
  22. > # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d pi@raspberrypi-prism:~ $ cat
  23. > /etc/ppp/pppoe-server-options
  24. > # PPP options for the PPPoE server
  25. > # LIC: GPL
  26. > #require-pap
  27. > #login
  28. > #lcp-echo-interval 10
  29. > #lcp-echo-failure 2
  30. >
  31. > # PPP options for the PPPoE Server
  32. > # LOC: GPL
  33. > #require-pap
  34. > #require-chap
  35. > #login
  36. > #lcp-echo-interval 10
  37. > #lcp-echo-failure 2
  38. > #ms-dns 4.2.2.1
  39. > #ms-dns 4.2.2.3
  40. > #netmask 255.255.255.0
  41. > #defaultroute
  42. > #noipdefault
  43. >
  44. > auth lcp-echo-failure 3 lcp-echo-interval 60 mtu 1482 mru 1482
  45. > require-chap ms-dns 8.8.8.8 ms-dns 8.8.4.4 netmask 255.255.255.0
  46. > defaultroute noipdefault usepeerdns debug logfile
  47. > /var/log/pppoe-server-log
  48. >
  49. > pi@raspberrypi-prism:~ $ sudo cat /etc/ppp/chap-secrets
  50. > # Secrets for authentication using CHAP
  51. > # client  server  secret          IP addresses "murpppoe" *   "pppoeacc123"       172.32.50.12    
  52. >
  53. > pi@raspberrypi-prism:~ $ sudo cat /etc/ppp/pppoe_start
  54. > #!/bin/bash
  55. > ##############################
  56. > # Simple script that starts PPPoE Server
  57. > ##############################
  58. >
  59. > # Enable IP Forwarding echo 1 > /proc/sys/net/ipv4/ip_forward
  60. >
  61. > # Start PPPoE Server pppoe-server -C murisp -L 172.32.50.1 -p /etc/ppp/ipaddress_pool -I enxb827ebd709fc -m 1412
  62. >
  63. > # Set Firewall rules iptables -t nat -F POSTROUTING iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
  64. >
  65. >
  66. > pi@raspberrypi-prism:~ $ ifconfig  enxb827ebd709fc:
  67. > flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
  68. >         inet 192.168.2.1  netmask 255.255.255.0  broadcast 192.168.2.255
  69. >         ether b8:27:eb:d7:09:fc  txqueuelen 1000  (Ethernet)
  70. >         RX packets 0  bytes 0 (0.0 B)
  71. >         RX errors 0  dropped 0  overruns 0  frame 0
  72. >         TX packets 0  bytes 0 (0.0 B)
  73. >         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  74. >
  75. > lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
  76. >         inet 127.0.0.1  netmask 255.0.0.0
  77. >         inet6 ::1  prefixlen 128  scopeid 0x10<host>
  78. >         loop  txqueuelen 1000  (Local Loopback)
  79. >         RX packets 247  bytes 21931 (21.4 KiB)
  80. >         RX errors 0  dropped 0  overruns 0  frame 0
  81. >         TX packets 247  bytes 21931 (21.4 KiB)
  82. >         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  83. >
  84. > wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
  85. >         inet 10.196.46.55  netmask 255.255.240.0  broadcast 10.196.47.255
  86. >         inet6 fe80::dfd2:8805:ab25:b4a8  prefixlen 64  scopeid 0x20<link>
  87. >         ether b8:27:eb:82:5c:a9  txqueuelen 1000  (Ethernet)
  88. >         RX packets 824  bytes 664303 (648.7 KiB)
  89. >         RX errors 0  dropped 0  overruns 0  frame 0
  90. >         TX packets 827  bytes 110628 (108.0 KiB)
  91. >         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  92. >
  93. >
  94. > dmesg | grep -i eth [    1.955184] smsc95xx 1-1.1:1.0 eth0: register
  95. > 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet,
  96. > b8:27:eb:d7:09:fc [    4.059013] smsc95xx 1-1.1:1.0 enxb827ebd709fc:
  97. > renamed from eth0 [    9.674809] Bluetooth: BNEP (Ethernet Emulation)
  98. > ver 1.3
  99. >
  100. >
  101. >
  102. > tail -f /var/log/syslog
  103. >
  104. > Mar 20 15:11:38 raspberrypi-prism pppd[2730]: pppd 2.4.7 started by
  105. > root, uid 0 Mar 20 15:11:38 raspberrypi-prism pppd[2730]: Using
  106. > interface ppp0 Mar 20 15:11:38 raspberrypi-prism pppd[2730]: Connect:
  107. > ppp0 <--> /dev/pts/2 Mar 20 15:11:38 raspberrypi-prism pppoe[2733]:
  108. > ioctl(SIOCGIFHWADDR): Session 0: No such device Mar 20 15:11:38
  109. > raspberrypi-prism pppd[2730]: Modem hangup Mar 20 15:11:38
  110. > raspberrypi-prism pppd[2730]: Connection terminated. Mar 20 15:11:38
  111. > raspberrypi-prism pppd[2730]: Exit. Mar 20 15:11:38 raspberrypi-prism
  112. > pppoe-connect: PPPoE connection lost; attempting re-connection.
  113. >
  114. >
  115. > Mar 20 16:38:18 raspberrypi-prism dnsmasq[1000]: using nameserver
  116. > 135.245.163.125#53 Mar 20 16:38:22 raspberrypi-prism kernel: [  233.214913] PPP generic driver version 2.4.2 Mar 20 16:38:23 raspberrypi-prism pppd[1916]: pppd 2.4.7 started by root, uid 0 Mar 20
  117. > 16:38:23 raspberrypi-prism pppd[1916]: Using interface ppp0 Mar 20
  118. > 16:38:23 raspberrypi-prism pppd[1916]: Connect: ppp0 <--> /dev/pts/2
  119. > Mar 20 16:38:23 raspberrypi-prism pppoe[1918]: ioctl(SIOCGIFHWADDR):
  120. > Session 0: No such device Mar 20 16:38:23 raspberrypi-prism
  121. > pppd[1916]: Modem hangup Mar 20 16:38:23 raspberrypi-prism pppd[1916]:
  122. > Connection terminated. Mar 20 16:38:23 raspberrypi-prism pppd[1916]:
  123. > Exit. Mar 20 16:38:23 raspberrypi-prism pppoe-connect: PPPoE
  124. > connection lost; attempting re-connection. Mar 20 16:38:27
  125. > raspberrypi-prism dhcpcd[335]: wlan0: no IPv6 Routers available Mar 20
  126. > 16:38:28 raspberrypi-prism pppd[1944]: pppd 2.4.7 started by root, uid
  127. > 0 Mar 20 16:38:28 raspberrypi-prism pppd[1944]: Using interface ppp0
  128. > Mar 20 16:38:28 raspberrypi-prism pppd[1944]: Connect: ppp0 <-->
  129. > /dev/pts/2 Mar 20 16:38:28 raspberrypi-prism pppoe[1947]:
  130. > ioctl(SIOCGIFHWADDR): Session 0: No such device Mar 20 16:38:28
  131. > raspberrypi-prism pppd[1944]: Modem hangup Mar 20 16:38:28
  132. > raspberrypi-prism pppd[1944]: Connection terminated. Mar 20 16:38:28
  133. > raspberrypi-prism pppd[1944]: Exit. Mar 20 16:38:28 raspberrypi-prism
  134. > pppoe-connect: PPPoE connection lost; attempting re-connection.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top