LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2012, 08:10 AM   #1
akshayingle09
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
Name assign to eth0 and eth1


For server i connected eth0 to Lan and eth1 to Wan, eth0's ip is 192.168.1.2 and eth1's ip is 172.26.1.5, now 2nd person comes and he check's ip address for server using ifconfig cammand, now how can he understand which network is connected to Lan and which one for Wan.

i want to give name to eth0 and eth1 like eth0 = LAN and eth1 = Wan.

so what i can i do ?........
 
Old 06-13-2012, 01:47 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

Quote:
For server i connected eth0 to Lan and eth1 to Wan, eth0's ip is 192.168.1.2 and eth1's ip is 172.26.1.5, now 2nd person comes and he check's ip address for server using ifconfig cammand, now how can he understand which network is connected to Lan and which one for Wan.
Given that the eth0 ip is 192.168.*.* it is quite clear that this is the lan.

Quote:
i want to give name to eth0 and eth1 like eth0 = LAN and eth1 = Wan.
I think you should be able set this using udev and the mac address. For example, on my Debian boxes, I have /etc/udev/rules.d/70-persistent-net.rules file that sets the device name based on the mac address.

Evo2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i assign/switch eth0 & eth1 the-sloth Linux - Networking 10 02-05-2011 12:48 PM
Production server with static IPs on eth0 and eth0:1 - need private LAN on eth1 stardotstar Linux - Networking 8 07-03-2010 12:27 AM
howto acess intrnet thru eth1(wireless card)in winXP via briging in linux(eth0-eth1) labhesh_popli Linux - Wireless Networking 1 09-21-2006 01:11 AM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 12:12 PM
Kernel 2.4.22 finds eth0 and eth1 but 2.6.0 does not find eth1 coollink Linux - Networking 3 01-13-2004 07:32 PM


All times are GMT -5. The time now is 11:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration