Find the answer to your Linux question:
Results 1 to 3 of 3
I have an ADSL2+ modem which provides an admin interface on 192.168.1.1. Unfortunately my LAN is 192.168.0.0 so I have no way of accessing the admin pages to manage the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    8

    Can I use an alias to access my modem admin interface on different IP range?


    I have an ADSL2+ modem which provides an admin interface on 192.168.1.1. Unfortunately my LAN is 192.168.0.0 so I have no way of accessing the admin pages to manage the modem.

    I read that it's possible to use aliases to assign multiple IP addresses to a single NIC and I was wondering whether this would help me access 192.168.1.1 from one of my PCs on 192.168.0.0.

    My setup is as follows:

    Internal LAN is 192.168.0.0. PCs are on this LAN.
    Internet gateway/firewall/general linux server has two NICs:

    eth0 - 192.168.0.254
    eth1 - no IP address as it's in bridge mode
    .
    ADSL2+ modem is connected to internet on ppp0 which has a dynamically allocated IP address from my ISP. And is also connected to eth1 by ethernet cable.

    What I would like to do is have a setup where I can access the modem's administration pages on 192.168.1.1 from a PC on the 192.168.0.0 LAN. How can I do this?

  2. #2
    Just Joined!
    Join Date
    Jun 2010
    Posts
    15
    when you add "ifconfig eth0:1 192.168.1.x" config, Can you ping 192.168.1.1 on your server ?

  3. #3
    Just Joined!
    Join Date
    Sep 2008
    Posts
    8
    Quote Originally Posted by sooset View Post
    when you add "ifconfig eth0:1 192.168.1.x" config, Can you ping 192.168.1.1 on your server ?
    I logged on as root and entered this command:
    ifconfig eth0:1 192.168.1.99

    My network configs now looks like this:


    eth0 Link encap:Ethernet HWaddr 00:50:BA:68:60:7F
    inet addr:192.168.0.254 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::250:baff:fe68:607f/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:961113 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1068489 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:132679720 (126.5 MiB) TX bytes:851195692 (811.7 MiB)
    Interrupt:153 Base address:0xf00

    eth0:1 Link encap:Ethernet HWaddr 00:50:BA:68:60:7F
    inet addr:192.168.1.99 Bcast:192.168.1.255 Mask:255.255.255.0
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    Interrupt:153 Base address:0xf00

    eth1 Link encap:Ethernet HWaddr 00:10:5A:5B:BF:61
    inet6 addr: fe80::210:5aff:fe5b:bf61/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:500804 errors:1 dropped:0 overruns:0 frame:1
    TX packets:579972 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:387770966 (369.8 MiB) TX bytes:94077291 (89.7 MiB)
    Interrupt:153 Base address:0x2e80

    lo 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:462211 errors:0 dropped:0 overruns:0 frame:0
    TX packets:462211 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:319176330 (304.3 MiB) TX bytes:319176330 (304.3 MiB)

    ppp0 Link encap:Point-to-Point Protocol
    inet addr:220.233.xxx.yyy P-t-P:220.233.1.152 Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
    RX packets:13362 errors:0 dropped:0 overruns:0 frame:0
    TX packets:10047 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:3
    RX bytes:14734288 (14.0 MiB) TX bytes:1644266 (1.5 MiB)

    But I still can't ping 192.168.1.1 either from the server or from a PC on the LAN. Was there something else I need to do to make this work?

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •