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.