LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Name assign to eth0 and eth1 (https://www.linuxquestions.org/questions/linux-newbie-8/name-assign-to-eth0-and-eth1-4175411021/)

akshayingle09 06-12-2012 09:10 AM

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 ?........

evo2 06-13-2012 02:47 AM

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.


All times are GMT -5. The time now is 09:38 AM.