You are not logged in.

#1 2012-02-24 19:30:54

AivarasK
Member
From: Lithuania
Registered: 2011-01-29
Posts: 13
Website

About routing

Hello,
I'm connected to internet only by Wifi and I have no cable connection.
The thing I'm trying to do is use mine wireless internet connection, but at the same time be able to connect to router that I want to config via telnet. Router is connected with cable, but there is no cable from router to internet.
How to do this?
Only thing I can do is to use only one connection once.


eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500  metric 1
        ether 00:13:77:a9:33:8a  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 19 


wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
        inet 192.168.1.10  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::221:63ff:fe56:155d  prefixlen 64  scopeid 0x20<link>
        ether 00:21:63:56:15:5d  txqueuelen 1000  (Ethernet)
        RX packets 99558  bytes 80755038 (77.0 MiB)
        RX errors 0  dropped 18  overruns 0  frame 0
        TX packets 86988  bytes 19102940 (18.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0     IEEE 802.11bg  ESSID:"MEZON" 
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:30:0D:6A:D3:3D   
          Bit Rate=54 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=63/70  Signal level=-47 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:37   Missed beacon:0

Thanks for a help!


Laptop I: DELL Inspiron 15: Intel i3-4005U @ 1.70GHz, 8GB DDR3 1600MHz, Sandisk Plus 256GB SSD + WD Blue 500GB, Archlinux x86_64.
Laptop II: Acer C720: Intel Celeron 2955U @ 1.4GHz, 2GB DDR3, Intel HD, 120GB m.2 SSD, Archlinux x86_64
Server: HP ProLiant G4 DL380: 2x Intel Xeon 3.6GHz, 8GB of EEC ram, 8x 73GB 15K RPM SCSI drives, Archlinux x86_64

Offline

#2 2012-02-24 21:39:18

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: About routing

Easiest way to do it I can think of, is to simply assign a static ip in an unused subnet to eth0 + the management interface of the router. So lets take the 10/8 subnet as an example. Assign 10.0.0.1 to eth0, 10.0.0.2 to the management interface on the router and route 10/8 over your eth0 interface.

Actual config would be:

# ip addr add 10.0.0.1/24 dev eth0
# ip route add 10.0.0.0/8 dev eth0

Burninate!

Offline

#3 2012-02-25 18:02:59

AivarasK
Member
From: Lithuania
Registered: 2011-01-29
Posts: 13
Website

Re: About routing

Gcool wrote:
# ip addr add 10.0.0.1/24 dev eth0
# ip route add 10.0.0.0/8 dev eth0

So first line is for assigning ip to eth0 interface, and the second one in asigning routers ip to that IP?


Laptop I: DELL Inspiron 15: Intel i3-4005U @ 1.70GHz, 8GB DDR3 1600MHz, Sandisk Plus 256GB SSD + WD Blue 500GB, Archlinux x86_64.
Laptop II: Acer C720: Intel Celeron 2955U @ 1.4GHz, 2GB DDR3, Intel HD, 120GB m.2 SSD, Archlinux x86_64
Server: HP ProLiant G4 DL380: 2x Intel Xeon 3.6GHz, 8GB of EEC ram, 8x 73GB 15K RPM SCSI drives, Archlinux x86_64

Offline

#4 2012-02-25 19:13:29

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: About routing

# ip addr add 10.0.0.1/24 dev eth0

Assigns ip 10.0.0.1 to your eth0 interface.

# ip route add 10.0.0.0/8 dev eth0

Tells your Arch to route connectivity towards any address in the 10/8 subnet over eth0. So if you then assign an address in the 10/8 subnet to the router (and anything else besides the router you want to play with); you can access it all from your Arch box without it interfering with your internet connectivity.


Burninate!

Offline

Board footer

Powered by FluxBB