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

Thread: 2 nic's - 2 seperate networks...

  1. #1
    Join Date
    Jul 2007
    Location
    Base 211
    Beans
    340
    Distro
    Ubuntu 14.04 Trusty Tahr

    2 nic's - 2 seperate networks...

    Ok heres the gist...

    have 2 nics, currently only enabling one so this pc has internet....

    disabled the second cause no-matter the sett's i set it seems to mess up eth0

    This is my goal..

    eth0 - internet
    eth1 - wireless ap - which i only want to be able to access samba-shares

    current ifconfig is as follows

    Code:
    eth0      Link encap:Ethernet  HWaddr 00:1a:4d:9e:c7:65  
              inet addr:192.168.0.12  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: fe80::21a:4dff:fe9e:c765/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:11256 errors:0 dropped:0 overruns:0 frame:0
              TX packets:10852 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:8423826 (8.4 MB)  TX bytes:1680775 (1.6 MB)
              Interrupt:41 Base address:0xc000 
    
    eth1      Link encap:Ethernet  HWaddr 00:25:86:e0:00:ee  
              inet addr:192.167.0.1  Bcast:192.167.255.255  Mask:255.255.0.0
              inet6 addr: fe80::225:86ff:fee0:ee/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:60 errors:0 dropped:0 overruns:0 frame:0
              TX packets:632 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:3802 (3.8 KB)  TX bytes:62664 (62.6 KB)
              Interrupt:16 Base address:0xe000 
    
    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:2940 errors:0 dropped:0 overruns:0 frame:0
              TX packets:2940 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:189001 (189.0 KB)  TX bytes:189001 (189.0 KB)
    How so i resolve this so when i enabled eth1 it doesnt cause eth0 to go blind to the internet..?

  2. #2
    Join Date
    Dec 2008
    Location
    Deep Woods of PA
    Beans
    699
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Re: 2 nic's - 2 seperate networks...

    Quote Originally Posted by Plasma_NZ View Post
    Ok heres the gist...

    have 2 nics, currently only enabling one so this pc has internet....

    disabled the second cause no-matter the sett's i set it seems to mess up eth0

    This is my goal..

    eth0 - internet
    eth1 - wireless ap - which i only want to be able to access samba-shares

    current ifconfig is as follows

    Code:
    eth0      Link encap:Ethernet  HWaddr 00:1a:4d:9e:c7:65  
              inet addr:192.168.0.12  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: fe80::21a:4dff:fe9e:c765/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:11256 errors:0 dropped:0 overruns:0 frame:0
              TX packets:10852 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:8423826 (8.4 MB)  TX bytes:1680775 (1.6 MB)
              Interrupt:41 Base address:0xc000 
    
    eth1      Link encap:Ethernet  HWaddr 00:25:86:e0:00:ee  
              inet addr:192.167.0.1  Bcast:192.167.255.255  Mask:255.255.0.0
              inet6 addr: fe80::225:86ff:fee0:ee/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:60 errors:0 dropped:0 overruns:0 frame:0
              TX packets:632 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:3802 (3.8 KB)  TX bytes:62664 (62.6 KB)
              Interrupt:16 Base address:0xe000 
    
    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:2940 errors:0 dropped:0 overruns:0 frame:0
              TX packets:2940 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:189001 (189.0 KB)  TX bytes:189001 (189.0 KB)
    How so i resolve this so when i enabled eth1 it doesnt cause eth0 to go blind to the internet..?
    Correct mask on eth1 interface would be a good start. Also what does
    Code:
    netstat -rn
    show?
    Regards,

    Karlson

  3. #3
    Join Date
    Jul 2007
    Location
    Base 211
    Beans
    340
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: 2 nic's - 2 seperate networks...

    Code:
    eth0      Link encap:Ethernet  HWaddr 00:1a:4d:9e:c7:65  
              inet addr:192.168.0.12  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: fe80::21a:4dff:fe9e:c765/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:15589 errors:0 dropped:0 overruns:0 frame:0
              TX packets:15071 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:11447669 (11.4 MB)  TX bytes:2278830 (2.2 MB)
              Interrupt:41 Base address:0xc000 
    
    eth1      Link encap:Ethernet  HWaddr 00:25:86:e0:00:ee  
              inet addr:192.167.0.1  Bcast:192.167.0.255  Mask:255.255.255.0
              inet6 addr: fe80::225:86ff:fee0:ee/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:86 errors:0 dropped:0 overruns:0 frame:0
              TX packets:885 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:5452 (5.4 KB)  TX bytes:90557 (90.5 KB)
              Interrupt:16 Base address:0xe000 
    
    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:3941 errors:0 dropped:0 overruns:0 frame:0
              TX packets:3941 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:251528 (251.5 KB)  TX bytes:251528 (251.5 KB)
    
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    192.167.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
    192.168.0.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         0 0          0 eth0
    0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0          0 eth0

  4. #4
    Join Date
    Dec 2008
    Location
    Deep Woods of PA
    Beans
    699
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Re: 2 nic's - 2 seperate networks...

    Quote Originally Posted by Plasma_NZ View Post
    Code:
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    192.167.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
    192.168.0.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         0 0          0 eth0
    0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0          0 eth0
    Is you eth1 interface facing the internet? If not set the address to 192.168.1.x instead of 192.167.0.x.
    Regards,

    Karlson

  5. #5
    Join Date
    Jul 2007
    Location
    Base 211
    Beans
    340
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: 2 nic's - 2 seperate networks...

    eth0 = internet
    eth1 = wireless ap - which i dont want to access anything but samba shares

  6. #6
    Join Date
    Dec 2008
    Location
    Deep Woods of PA
    Beans
    699
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Re: 2 nic's - 2 seperate networks...

    Quote Originally Posted by Plasma_NZ View Post
    eth0 = internet
    eth1 = wireless ap - which i dont want to access anything but samba shares
    Then change the IP address to be on 192.168.1.x subnet.
    Regards,

    Karlson

  7. #7
    Join Date
    Jul 2007
    Location
    Base 211
    Beans
    340
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: 2 nic's - 2 seperate networks...

    i cannot use 192.168.1.* range as thats in use on 192.168.0.1 routing server

  8. #8
    Join Date
    Dec 2008
    Location
    Deep Woods of PA
    Beans
    699
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Re: 2 nic's - 2 seperate networks...

    Quote Originally Posted by Plasma_NZ View Post
    i cannot use 192.168.1.* range as thats in use on 192.168.0.1 routing server
    If your mask is set as it is now to class C(255.255.255.0, the range 192.168.0.x doesn't include 192.168.1.x
    Regards,

    Karlson

  9. #9
    Join Date
    Jul 2007
    Location
    Base 211
    Beans
    340
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: 2 nic's - 2 seperate networks...

    despite what you are saying - if i type in my browser 192.168.1.2 - i end up accessing my router...

  10. #10
    Join Date
    Dec 2008
    Location
    Deep Woods of PA
    Beans
    699
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Re: 2 nic's - 2 seperate networks...

    Quote Originally Posted by Plasma_NZ View Post
    despite what you are saying - if i type in my browser 192.168.1.2 - i end up accessing my router...
    Do you have a machine that has IP address of 192.168.1.2? Secondly how is your router configured? and what kind of router is it?
    Regards,

    Karlson

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
  •