Network interface-


 
Thread Tools Search this Thread
Special Forums IP Networking Network interface-
# 1  
Old 05-18-2012
Network interface-

Hello,
Please what's the difference between:
Quote:
eth1 Link encap:Ethernet HWaddr 08:00:27:3a:0d:6b
inet addr:192.168.56.102 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe3a:d6b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1180 (1.1 KB) TX bytes:8350 (8.3 KB)
AND
Quote:
eth0 Link encap:Ethernet HWaddr 08:00:27:0b:17:dd
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe0b:17dd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:25 errors:0 dropped:0 overruns:0 frame:0
TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3330 (3.3 KB) TX bytes:10363 (10.3 KB)
Thank you so much
# 2  
Old 05-18-2012
An IP address is how you talk to another computer over an IP network. Each network card has its own IP. You try connecting to 10.0.2.15, and IP protocol will find that computer and talk to it if it's there.

It must be unique on the network -- you shouldn't have two 10.0.2.15's plugged into the same local network, they'll conflict.

An IP address, combined with its netmask, netmask are sort of a combined house and street address. The netmask defines which part is local.

Code:
MASK   255 255 255   0
  IP   192 168  56 102
Local                0-254

Meaning, 192.168.56.102 can directly talk to any other network card with an IP address of 192.168.56.anything-else. If it were 192.168.57, it would have to forward the message along to a gateway and hope it knows where it belongs.

So the IP address is a unique ID for each computer, and the subnet mask defines which block of other IPs it can talk to.
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 05-19-2012
Please, I have another question, I'm working on VirtualBox, I have two network cards, one for LAN and one for the NAT access mode that allows me to connect to Internet, how to know which card goes with which IP address?
and if
Quote:
eth1 Link encap:Ethernet HWaddr 08:00:27:3a:0d:6b
inet addr:192.168.56.102 Bcast:192.168.56.255 Mask:255.255.255.0
correspond to network card LAN or network card NAT?

Thank you so much
# 4  
Old 05-19-2012
eth1 is here the default NAT interface. There is no risk of conflict as there is no real network, just the host side at 10.0.2.2 and the guest at 10.0.2.15.

Last edited by jlliagre; 05-19-2012 at 12:07 PM..
This User Gave Thanks to jlliagre For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Adding a network interface to a bonded interface

I have a RHEL 5 system with a bonded interface configure using only one network port (eth0). So I have config file for ifcfg-bond0 and ifcfg-eth. I'd like to configure eth5 to be the second SLAVE in the bond. My question is, after I modify ifcfg-eth5, can I add eth5 to the bond0 interface without... (1 Reply)
Discussion started by: westmoreland
1 Replies

2. Solaris

No network cable But Network interface is UP and Running

I've one Netra 240 After changing main board and system configuration card reader, Network is not accessible any more, Network interfaces are always UP and Running even when there is no cable connected to Network interfaces. I tried to restart and plumb/unplumb with no luck. ifconfig -a... (7 Replies)
Discussion started by: samer.odeh
7 Replies

3. IP Networking

network interface -

Hello, Please, how can i create a network interface with a routable IP address on linux (ubuntu) ? AND How can i desactivate an interface? Thank you so much for help. (1 Reply)
Discussion started by: chercheur857
1 Replies

4. UNIX and Linux Applications

Access to network interface (Mac-network)

Hi, I'm a italian student. For my thesis I develop a gateway with protocol 6lowpan. For that I must access to network interface to develope my personal stack based on standard 802.15.4. Can you help me? I need an explanation for that. (0 Replies)
Discussion started by: berny88
0 Replies

5. Solaris

configure zones to have different network interface and network

i need to configure a zone to use different interface (bge2) than global and have connected to completely different network switch & to use its own defaultrouter and hosts file .. is it possible ..if so ..how ? Thanks (9 Replies)
Discussion started by: skamal4u
9 Replies

6. Solaris

Network interface problem

Hi i have replace a NIC card on solaris 10 when i give the following command ifconfig -a it just show the lo0 (only loop back with inet 127.0.0.1) when i give the following command to config the interface, ifconfig elxl0 plumb ifconfig: plumb: elxl0: no such interface please help... (11 Replies)
Discussion started by: malikshahid85
11 Replies

7. Solaris

Network interface not found ?

Hello, I have just installed Solaris 9 x86 in a VMWare and the 1st problem I have is to enable the networking. I can only see the loopback interface and nothing else. - I dont have any /etc/hostnames.xxx - ifconfig -a shows only the loopback - kstat -c net shows only the loopback ... Any... (11 Replies)
Discussion started by: Tex-Twil
11 Replies

8. Solaris

Network Interface Issue

Hi all, Here im facing problem with NIC Interface with my X86 Version of Solaris Express, even after loading module for that Interface. So please check this below mentioned log for your use and get back to me ASAP. - - - -- --... (0 Replies)
Discussion started by: baraghun
0 Replies

9. AIX

Problem with a Network Interface

Hi every body, I have a Fiber Channel interface (fcs2) in AIX 5.2. This interface was fine & up but for some reason I could not return this interface UP again after I set it DOWN. When I tried to set this interface UP I encountered the following error: Method error... (7 Replies)
Discussion started by: aldowsary
7 Replies

10. UNIX for Dummies Questions & Answers

Network Interface

Hi ! Does anyone know how can i get information about my network interface ... if it works in half or full duplex mode !! Thx in adivance ! Witt (4 Replies)
Discussion started by: witt
4 Replies
Login or Register to Ask a Question