How do I set up your network.
Provider: Jsc “Volgatelecom“
Internet (ADSL)
Modem: Huawei MT880
Officers threw a wire up to my apartment, in a room to me.
Put a phone socket for inserting RJ11 connector.
Then connected the splitter into the wall going into the set with the modem to the splitter connected the phone and modem options (from splitera are two wires with RJ11 connectors).
In the modem into the connector Ethernet RJ45 connector cable is inserted and connected the other end to the computer’s NIC (RJ45 connector at the back of the system unit)
It’s time to configure.
Of all the methods chosen most convenient.
Opened the browser, to access the modem to configure it, switched on at
192.168.1.1
The admin login and password (in other brands of modems can be capitalized by Admin)
Under WAN Settings configured connection
PPPoE
pointed out the username and password (obtained from provider)
indicated the vpi and vci (the provider)
the extra connection removed
See DHCP DHCP enabled
Under DNS pointed out two DNS provider (the provider)
In the Save section & Reboot
Choose Save and clicked Submit (save settings)
then Reboot and clicked Submit chose (restart the modem).
In this method, the configuration in Debian should not be changed (the default settings are appropriate for the network).
Also previously used the modem Intercross, it connects longer and breaks the connection at times, and Huawei MT880 connects quickly and rarely breaks the connection.
We have already purchased a switch through a hole in the wall in another room Internet (for guests when come to your place, or for me with the NetBook when guests sit outside my stationary computer).
Additional cables bought and asked to press (hook connectors) in a computer store.
Connection with pppoe connection
(among the providers know the CPD, net11). Different connecting cable network directly to the network card.
1. install package
Code: [Select]
1 |
#apt-get install pppoeconf |
2. Set up a connection
1 |
#pppoeconf |
Here nothing is sophisticated, agree with everything.
3. If you have chosen not to connect at once, there are commands:
1 |
#pon dsl-provider |
–for the connection
1 |
#poff |
–to disconnect the network
P.s. should note that after this configuration work network-manager will not. To zarabatal, it is necessary to remove all the lines except
1 2 3 |
auto lo iface lo inet loopback |
from/etc and restarts
* the # sign in the command indicates that the command is run as root
Connect to your service provider m-Telecom VPN
1. What do we need? Debian
sudo apt–get install ppp
you will ask for a password because sudo is a model admin commands and write the password that you use when you log in. then everything would be clear)), now select pptp-linux
at the command prompt, enter this
sudo apt–get install pptp-linux
now the time had come to set up =)
to make sure that the network work ping the vpn: 81.24.85.3 gateway: 192.168.67.1 I have this if you have another such as 192.168.65.1 enter it for this email from the command line
Ping-c5 217.107.252.3
Ping-c5 192.168.67.1
If the ping was then we need to enter the dns vpn routers in our dns and vpn network one 81.24.85.3 do so
sudo ip-e a 81.24.85.3 via 192.168.67.1 # if you have ip 192.168.6 *. 1 enter it later on the example of 192.168.67.1 and you will always to enter your
Next, we need to remove the default routes
sudo route del default
to make sure that all successful write
route-n
will be similar to this
Code: [Select]
1 2 3 4 5 6 |
Таблица маршутизации ядра протокола IP Destination Gateway Genmask Flags Metric Ref Use Iface 81.24.85.3 192.168.67.1 255.255.255.255 UGH 0 0 0 eth0 192.168.67.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0 |
Next we need to create a script to run the Internet type in this
sudo gedit/etc/ppp/peers/mt or (sudo nano/etc/ppp/peers/mt)
will a text pad where you enter and podredaktirujte under the
Code: [Select]
1 2 3 4 5 6 7 8 9 |
mtu 1490 pty "pptp 217.107.252.3 --nolaunchpppd" user СВОЙ_ЛОГИН_НА_ИНТЕРНЕТ password ПАРОЛЬ_НА_ИНТЕРНЕТ_ nodeflate nobsdcomp noauth defaultroute |
Click Save and exit then we need to raise the VPN will inscribe on the command line
sudo pppd call mt debug nodetach
will be similar to this
Code: [Select]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
using channel 2 Using interface ppp1 Connect: ppp1 <--> /dev/pts/2 rcvd [LCP ConfReq id=0x1 <mru 1490> <asyncmap 0x0> <auth chap MD5> <magic 0xab48425d> <pcomp> <accomp>] sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf4d2fa1c> <pcomp> <accomp>] sent [LCP ConfAck id=0x1 <mru 1490> <asyncmap 0x0> <auth chap MD5> <magic 0xab48425d> <pcomp> <accomp>] rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xf4d2fa1c> <pcomp> <accomp>] sent [LCP EchoReq id=0x0 magic=0xf4d2fa1c] rcvd [LCP EchoReq id=0x0 magic=0xab48425d] sent [LCP EchoRep id=0x0 magic=0xf4d2fa1c] rcvd [CHAP Challenge id=0xf6 <70ee6ab253dc96faea9a794acfab8c243f1df6d7af>, name = "Proxy"] sent [CHAP Response id=0xf6 <0817c174ae94ff647560aadb2b786213>, name = "Folko"] rcvd [LCP EchoRep id=0x0 magic=0xab48425d] rcvd [CHAP Success id=0xf6 "P\37777777710\37777777625\37777777777\37777777777\177"] CHAP authentication succeeded: PM-HM-^UM-^?M-^?^? CHAP authentication succeeded sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>] rcvd [CCP ConfReq id=0x1 <bsd v1 15>] sent [CCP ConfReq id=0x1] sent [CCP ConfRej id=0x1 <bsd v1 15>] rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 10.0.0.1>] sent [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 10.0.0.1>] rcvd [IPCP ConfNak id=0x1 <addr 10.0.1.59>] sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 10.0.1.59>] rcvd [CCP ConfAck id=0x1] rcvd [CCP ConfReq id=0x2] sent [CCP ConfAck id=0x2] rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 10.0.1.59>] Cannot determine ethernet address for proxy ARP local IP address 10.0.1.59 remote IP address 10.0.0.1 Script /etc/ppp/ip-up started (pid 7180) Script /etc/ppp/ip-up finished (pid 7180), status = 0x0 |
If all goes well then open another command prompt and enter this
ifconfig should go something like this
Code: [Select]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
eth0 Link encap:Ethernet HWaddr 00:13:d4:93:87:52 inet addr:192.168.67.56 Bcast:192.168.67.255 Mask:255.255.255.0 inet6 addr: fe80::213:d4ff:fe93:8752/64 Диапазон:Ссылка ВВЕРХ BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:307922 errors:0 dropped:0 overruns:0 frame:0 TX packets:108310 errors:0 dropped:0 overruns:0 carrier:0 коллизии:0 txqueuelen:1000 RX bytes:184193987 (175.6 MB) TX bytes:13022583 (12.4 MB) Прервано:20 Base address:0xd800 lo Link encap:Локальная петля (Loopback) inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Диапазон:Узел ВВЕРХ LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:1440 errors:0 dropped:0 overruns:0 frame:0 TX packets:1440 errors:0 dropped:0 overruns:0 carrier:0 коллизии:0 txqueuelen:0 RX bytes:72000 (70.3 KB) TX bytes:72000 (70.3 KB) ppp0 Link encap:Протокол PPP (Point-to-Point Protocol) inet addr:10.0.1.59 P-t-P:10.0.0.1 Mask:255.255.255.255 ВВЕРХ POINTOPOINT RUNNING NOARP MULTICAST MTU:1490 Metric:1 RX packets:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 коллизии:0 txqueuelen:3 RX bytes:57 (57.0 B) TX bytes:63 (63.0 B) |
well now you’re on the Internet and to your Internet saw hosts (i.e., sites) it is necessary to specify default route
sudo route add default dev ppp0
to make sure that everything is OK propinguem something like ya.ru
Code: [Select]
1 2 3 4 5 6 7 8 9 10 11 12 |
sharabdin@sharabdin:~$ ping ya.ru PING ya.ru (213.180.204.8) 56(84) bytes of data. 64 bytes from ya.ru (213.180.204.8): icmp_seq=1 ttl=55 time=1829 ms 64 bytes from ya.ru (213.180.204.8): icmp_seq=2 ttl=55 time=1632 ms 64 bytes from ya.ru (213.180.204.8): icmp_seq=3 ttl=55 time=1708 ms 64 bytes from ya.ru (213.180.204.8): icmp_seq=4 ttl=55 time=1449 ms 64 bytes from ya.ru (213.180.204.8): icmp_seq=5 ttl=55 time=880 ms 64 bytes from ya.ru (213.180.204.8): icmp_seq=6 ttl=55 time=889 ms 64 bytes from ya.ru (213.180.204.8): icmp_seq=7 ttl=55 time=937 ms 64 bytes from ya.ru (213.180.204.8): icmp_seq=8 ttl=55 time=917 ms 64 bytes from ya.ru (213.180.204.8): icmp_seq=9 ttl=55 time=1191 ms |
well here you see that the ping goes click cntl + c that ping left off and if want to go n number of times such as only three lines of the email
Ping-c3 ya.ru
Code: [Select]
1 2 3 4 5 6 7 8 9 |
PING ya.ru (213.180.204.8) 56(84) bytes of data. 64 bytes from ya.ru (213.180.204.8): icmp_seq=1 ttl=55 time=645 ms 64 bytes from ya.ru (213.180.204.8): icmp_seq=2 ttl=55 time=630 ms 64 bytes from ya.ru (213.180.204.8): icmp_seq=3 ttl=55 time=731 ms --- ya.ru ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 630.689/669.154/731.440/44.451 ms |
will you now know that as))
Next, disable the Internet write in command line
sudo poff mt
Now you have to edit a few files to add all routes
sudo gedit/etc/ppp/ip-up
and to write there
Code: [Select]
1 2 3 4 5 6 7 8 9 10 11 12 |
#!/bin/sh # # This script is run by pppd when there's a successful ppp connection. # route add -net 192.168.67.0 netmask 255.255.255.0 gw 192.168.67.1 route add -net 192.168.20.0 netmask 255.255.255.0 gw 192.168.67.1 route add -net 81.24.85.0 netmask 255.255.255.0 gw 192.168.67.1 route add -net 91.210.200.0 netmask 255.255.255.0 gw 192.168.67.1 route add -net 217.107.252.0 netmask 255.255.255.0 gw 192.168.67.1 route del default route add default dev ppp0 |
Press cntrl + s i.e. save then exit the editor gedit is a program the way type Notepad in windows, we enter sudo gedit if it doesn’t then can use the nano it works in console mode
sudo gedit/etc/ppp/ip-down or (sudo nano/etc/ppp/ip-down)
Code: [Select]
1 2 3 4 5 6 7 |
#!/bin/sh # # This script is run by pppd after the connection has ended. # route add default gw 192.168.67.1 |
keep going
now turn on the Internet command sudo pon mt and to disable sudo poff mt
that’s it that’s all I hope you will understand: wink: if not then post here