1845896 Members
3848 Online
110250 Solutions
New Discussion

external ipaddress

 
sjana
Occasional Advisor

external ipaddress

hello all,

How to assign a externel ip address to an HP UX box using command line?

if any options using sam?

tar
siva
2 REPLIES 2
bhavin asokan
Honored Contributor

Re: external ipaddress

hi,

what you mean by external ipaddress
for assigning/changing ip through command prompt try like following

ifconfig lan1 192.168.12.1 netmask 255.255.255.0

ifconfig lan1 up


if any error is coming regarding subnet

ndd -set /dev/ip ip_check_subnet_addr 0

for adding virtual lan

ifconfig lan1:1 192.168.12.2 netmask 255.255.255.0 up



regds,
Keith Bryson
Honored Contributor

Re: external ipaddress

Hi there

I think you need the ifconfig command. Use lanscan to discover your network cards. Apologies if I misunderstood the question though!

Keith
Arse-cover at all costs