Linux Operating System (MOSC)

MOSC Banner

Two hostname for two interface

edited Nov 25, 2012 10:49PM in Linux Operating System (MOSC) 3 commentsAnswered
Dear All,

We have a Linux box with two active interface eth0 [IP: 172.0.0.1] and eth1 [IP: 172.0.0.2], hostname is Linux1.com

requirement
if logged in to IP 172.0.0.1 hostname should be Linux1.com
if logged in to IP 172.0.0.2 hostname should be Linux2.com


Thanks & Regards,

Hamid V. Khan

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center