Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to stop DHCP from changing hostname Post 302103713 by prasadrao on Saturday 20th of January 2007 08:54:35 PM
Old 01-20-2007
I think beside changing in /etc/nodename You also need to make entry of hostname in /etc/hostname.interfacename
where interface name stands for your primary interface name like hme0 or ce0
or the interface for which dhcp is assigning the hostname.

thanks
prasad
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

what happen when changing Hostname?

I 'm using RH 7.2 Genome in the Network Configuration I change therer are two places one for static hostname for my machine and in DNS hostname I don't know what happen when restarting my PC when connecting using dialer I can't browse the Internet also I can't use sendmail .......Server timeout... (2 Replies)
Discussion started by: atiato
2 Replies

2. IP Networking

How do I stop my DHCP ???

Hi, I have a Sun Enterprise 450 with Unix Solaris 5.8. This was recently reconfigured and it now has a DHCP service running. However I want to give it a fixed IP. I have added the IP address in '/etc/hosts and have run 'dhcpconfig' and have followed the simple instructions to switch off DHCP... (1 Reply)
Discussion started by: brettwalmsley
1 Replies

3. UNIX for Dummies Questions & Answers

Hostname lost when changing user

Hello to all, Does anyone have a clue for the following problem? When I enter into a terminal console window logged as axadmin user, what I find in the prompt is: “axadmin@sunhost$”. But, when I switch to root user, with the command “su -“ and enter the correct password, user root is... (4 Replies)
Discussion started by: Pablo_BR
4 Replies

4. Solaris

Stop DHCP in Solaris 10

Can any one tell me how to stop DHCP service on Solaris 10 so that it should not start nextime when the system is rebooted. (2 Replies)
Discussion started by: shabu
2 Replies

5. HP-UX

HP-UX 10.xx Changing from static IP to DHCP

***Newbie alert*** What's the easiest way to accomplish this? An admin left our company and I have taken over his HP Workstation and moved it to a different location that is on a different IP segment. I have performed a number of google searches but the steps I have followed haven't worked. ... (1 Reply)
Discussion started by: Steelysteel
1 Replies

6. Solaris

changing ip and hostname on solaris

dears does any one know in steps how can i change ip and hostname on solaris (10 Replies)
Discussion started by: murad.jaber
10 Replies

7. UNIX for Dummies Questions & Answers

Changing IP & hostname

I have to do this twice. First, A) change IP address, subnet & default gateway. then a few days later B) change IP address again (same subnet & gateway) & hostname. (why twice? To get the vlan stuff out of the way in advance) what is the best way to do A? can all be done through... (5 Replies)
Discussion started by: LisaS
5 Replies

8. Solaris

changing hostname on Solaris 8 ?

hi, does anyone had experience changing hostname on Solaris 8 ? any idea how is it done ? (4 Replies)
Discussion started by: Exposure
4 Replies

9. Red Hat

dhcp not setting dns and changing to garbage

I have 2 problems. Dhcp is not setting dns and after I manually set my dns it changes to garbage. I literally just used command to set dns which is a good copy of resolv.conf: sudo cp /home/bob/Desktop/scripts_9-12-2011/resolv.conf /etc/resolv.confHere is a copy of my resolv.conf. #... (5 Replies)
Discussion started by: cokedude
5 Replies

10. SCO

SCO openserver: dhcp hostname

Simple question: how to send full dhcp hostname to dhcp server? Dchp server is linux,client is sco openserver6. (4 Replies)
Discussion started by: Linusolaradm1
4 Replies
ARP(8)							    BSD System Manager's Manual 						    ARP(8)

NAME
arp -- address resolution display and control SYNOPSIS
arp [-n] [-i interface] hostname arp [-n] [-i interface] [-l] -a arp -d hostname [pub] [ifscope interface] arp -d [-i interface] -a arp -s hostname ether_addr [temp] [reject] [blackhole] [pub [only]] [ifscope interface] arp -S hostname ether_addr [temp] [reject] [blackhole] [pub [only]] [ifscope interface] arp -f filename DESCRIPTION
The arp utility displays and modifies the Internet-to-Ethernet address translation tables used by the address resolution protocol (arp(4)). With no flags, the program displays the current ARP entry for hostname. The host may be specified by name or by number, using Internet dot notation. Available options: -a The program displays or deletes all of the current ARP entries. -d A super-user may delete an entry for the host called hostname with the -d flag. If the pub keyword is specified, only the ``published'' ARP entry for this host will be deleted. If the ifscope keyword is specified, the entry specific to the interface will be deleted. Alternatively, the -d flag may be combined with the -a flag to delete all entries. -i interface Limit the operation scope to the ARP entries on interface. Applicable only to the following operations: display one, display all, delete all. -l Show link-layer reachability information. -n Show network addresses as numbers (normally arp attempts to display addresses symbolically). -s hostname ether_addr Create an ARP entry for the host called hostname with the Ethernet address ether_addr. The Ethernet address is given as six hex bytes separated by colons. The entry will be permanent unless the word temp is given in the command. If the word pub is given, the entry will be ``published''; i.e., this system will act as an ARP server, responding to requests for hostname even though the host address is not its own. In this case the ether_addr can be given as auto in which case the interfaces on this host will be examined, and if one of them is found to occupy the same subnet, its Ethernet address will be used. If the only keyword is also specified, this will create a ``published (proxy only)'' entry. This type of entry is created automatically if arp detects that a routing table entry for hostname already exists. If the reject keyword is specified the entry will be marked so that traffic to the host will be discarded and the sender will be notified the host is unreachable. The blackhole keyword is similar in that traffic is discarded but the sender is not notified. These can be used to block external traffic to a host without using a firewall. If the ifscope keyword is specified, the entry will set with an additional property that strictly associate the entry to the inter- face. This allows for the presence of mutiple entries with the same destination on different interfaces. -S hostname ether_addr Is just like -s except any existing ARP entry for this host will be deleted first. -f filename Cause the file filename to be read and multiple entries to be set in the ARP tables. Entries in the file should be of the form hostname ether_addr [temp] [pub [only]] [ifscope interface] with argument meanings as given above. Leading whitespace and empty lines are ignored. A '#' character will mark the rest of the line as a comment. -x Show extended link-layer reachability information in addition to that shown by the -l flag. SEE ALSO
inet(3), arp(4), ifconfig(8), ndp(8) HISTORY
The arp utility appeared in 4.3BSD. BSD
March 18, 2008 BSD
All times are GMT -4. The time now is 01:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy