Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Can anyone shed some light on this static ip config

  1. #1
    Join Date
    Oct 2009
    Location
    Melbourne, Victoria, AUS
    Beans
    68
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Thumbs down Can anyone shed some light on this static ip config

    Ive followed all all the instructions on configuring a staic ip but there all based around the fact that the primary network interface is listed as eth0 but when i type ifconfig it states that mine is eth2. I have applied the following to /etc/network/interfaces but on restart i can no longer see any networks.

    Can anyone shed some light on what i may be doing wrong.

    auto lo
    iface lo inet loopback

    iface eth0 inet static
    address 192.168.0.2
    netmask 255.255.255.0
    gateway 192.168.0.1

    ben@ben-laptop:~$ ifconfig
    eth2 Link encap:Ethernet HWaddr 00:24:2c:15:5b:bc
    inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::224:2cff:fe15:5bbc/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:9013 errors:0 dropped:0 overruns:0 frame:5926
    TX packets:6913 errors:6 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:10284958 (10.2 MB) TX bytes:825670 (825.6 KB)
    Interrupt:18

    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:106 errors:0 dropped:0 overruns:0 frame:0
    TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:9238 (9.2 KB) TX bytes:9238 (9.2 KB)

  2. #2
    Join Date
    May 2008
    Location
    Everywhere I am.
    Beans
    221

    Re: Can anyone shed some light on this static ip config

    do you have more than one network interface?

  3. #3
    Join Date
    May 2008
    Location
    Everywhere I am.
    Beans
    221

    Re: Can anyone shed some light on this static ip config

    IN /ETC/NETWORK/INTERFACES change eth0 to eth2
    Last edited by kixome; November 5th, 2009 at 07:50 AM. Reason: sorry bout caps

  4. #4
    Join Date
    Oct 2009
    Location
    Melbourne, Victoria, AUS
    Beans
    68
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Can anyone shed some light on this static ip config

    Only wired and wireless card, wireless card being eth2.

  5. #5
    Join Date
    Oct 2009
    Location
    Melbourne, Victoria, AUS
    Beans
    68
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Can anyone shed some light on this static ip config

    Quote Originally Posted by kixome View Post
    IN /ETC/NETWORK/INTERFACES change eth0 to eth2
    I have done this but then i can no longer see any networks.

  6. #6
    Join Date
    May 2008
    Location
    Everywhere I am.
    Beans
    221

    Re: Can anyone shed some light on this static ip config

    try posting ifconfig -a

  7. #7
    Join Date
    May 2008
    Location
    Everywhere I am.
    Beans
    221

    Re: Can anyone shed some light on this static ip config

    Quote Originally Posted by houserparker View Post
    I have done this but then i can no longer see any networks.
    does it work with eth0? if so leave it alone. also previous guys post being relevant, is this a wired/wireless connection?

  8. #8
    Join Date
    Oct 2009
    Location
    Melbourne, Victoria, AUS
    Beans
    68
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Can anyone shed some light on this static ip config

    Quote Originally Posted by kixome View Post
    does it work with eth0? if so leave it alone. also previous guys post being relevant, is this a wired/wireless connection?
    Im using the internet now with it configured to eth0 but as yo0u requested it doesnt appear that there is any activity on eth0. I can leave it configured as eth0 but is there any way of knowing whether i have a static ip or whether its working?

    ben@ben-laptop:~$ ifconfig -a
    eth0 Link encap:Ethernet HWaddr 00:21:cc:37:6d:3a
    BROADCAST 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)
    Interrupt:27 Base address:0xe000

    eth2 Link encap:Ethernet HWaddr 00:24:2c:15:5b:bc
    inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::224:2cff:fe15:5bbc/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:11837 errors:0 dropped:0 overruns:0 frame:8676
    TX packets:9357 errors:6 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:12980624 (12.9 MB) TX bytes:1261417 (1.2 MB)
    Interrupt:18

    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:106 errors:0 dropped:0 overruns:0 frame:0
    TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:9238 (9.2 KB) TX bytes:9238 (9.2 KB)

  9. #9
    Join Date
    May 2008
    Location
    Everywhere I am.
    Beans
    221

    Re: Can anyone shed some light on this static ip config

    yes, are you able to browse the internet with this connection? if so it is working. Not being a smart butt just reiterating that it is working. from terminal:
    ping yahoo.com

    if you get a reply it is working.

  10. #10
    Join Date
    May 2008
    Location
    Everywhere I am.
    Beans
    221

    Re: Can anyone shed some light on this static ip config

    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:11837 errors:0 dropped:0 overruns:0 frame:8676
    TX packets:9357 errors:6 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:12980624 (12.9 MB) TX bytes:1261417 (1.2 MB)
    Interrupt:18

    should be working
    Last edited by kixome; November 5th, 2009 at 08:08 AM. Reason: color

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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