The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Google UNIX.COM


IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here.

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-27-2007
Registered User
 

Join Date: Nov 2007
Location: Dalmatia\Croatia
Posts: 11
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
NIC question!

I have eth1 and eth2 NIC in my Ubuntu. Everything works fine. I have two static IP, on XP and Ubuntu. XP - 192.168.0.1, Ubuntu is 192.168.0.2 on eth1, eth2 is set on DHCP. I have Lan on and internet sharing. I share internet over XP. Can somebody explain to me some things: I assume that eth1 is my network card? What is eth0 then? What address should I have on eth0? Is DHCP right option on eth0? I'm little confused.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-27-2007
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,079
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
I guess it is can you please post the output of "/sbin/ifconfig" and shed some light on "internet sharing". Usually eth0 is the first NIC you have, and eth1 is the second one, but it could be virtual interface as well. Do you have these two NICs physically installed on your box ?
Reply With Quote
  #3 (permalink)  
Old 11-28-2007
Registered User
 

Join Date: Nov 2007
Location: Dalmatia\Croatia
Posts: 11
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
no, ihave installed only one, onboard, and I have Kasda Router connected through USB drive also, but i assume that doesnt matter.

Code:
eth0      Link encap:Ethernet  HWaddr 00:E0:18:B0:80:2F
          inet addr:192.168.0.3  Bcast:192.168.0.255  Mask:255.255.255.0
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:231 errors:0 dropped:0 overruns:0 frame:0
          TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:23564 (23.0 KiB)  TX bytes:7372 (7.1 KiB)
          Interrupt:185 Base address:0xa000

eth1      Link encap:Ethernet  HWaddr 00:0E:F4:04:D0:58
          inet addr:192.168.0.92  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::20e:f4ff:fe04:d058/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1188 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1080 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:847101 (827.2 KiB)  TX bytes:243701 (237.9 KiB)

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:111 errors:0 dropped:0 overruns:0 frame:0
          TX packets:111 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:11275 (11.0 KiB)  TX bytes:11275 (11.0 KiB)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  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:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
I connect to broadband internet, adsl on Xp pc, over Lan I share that connection to Ubuntu. It seems to me like yesterday it internet worked on Ubuntu with static IP-s, and when I started Ubuntu today I had to put DHCP. Like, it switches eth1 and eth0 I found somewherehow to put both pc on static ip and have internet connection shared but sometimes it works and sometimes it doesn't.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash for loop boot: cannot open kernel/sparcv9/unix command copy/move folder in unix curses.h cut command in unix daemon process export command in unix find grep find mtime find null character in a unix file glance unix grep multiple lines grep or grep recursive inaddr_any inappropriate ioctl for device lynx javascript mailx attachment mget mtime perl array length ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude tar extract to folder test: argument expected unix unix .profile unix forum unix forums unix internals unix interview questions unix mtime unix simulator unix.com vi substitute while loop within while loop shell script


All times are GMT -7. The time now is 12:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101