local host setup


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers local host setup
# 1  
Old 03-30-2002
Question local host setup

I am running Redhat 7.2. I am using a router with dhcp setup for my computer. When logging in, I get the error "dhcppc1 not found". My router assigned that host name to my pc for dhcp. It says to modify the /etc/hosts file to keep from having any problems. Everything seems to be working ok (internet,etc.). How do I see what ip address I was assigned from dhcp? And if my ip chages because of dhcp, is there an entry I can use in /etc/hosts for dhcp instead of the current ip to keep from having any changing conflicts? Thanks, Jeremie
# 2  
Old 03-31-2002
You should leave all entries for the DHCP IP out of the hosts file unless you can statically assign an IP/hostname to the same host by MAC address. To find out what IP is attached to an interface, use:
Code:
ifconfig -a

The output will look something like this:

Code:
# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.0.2 netmask ffffff00 broadcast 192.168.0.255
        ether 8:0:20:90:ba:70

Ignore the lo interface with the 127.0.0.1 IP, look at the other.
# 3  
Old 03-31-2002
Thanks for the help!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Print all Host on local network

Hello guys, I would like to develop a script which takes a host name as argument and displays a message whether the host is on the local network or not. How can I accomplish that? Is there a file or command that I can use to list all host on the local network? :confused: (4 Replies)
Discussion started by: Learn4Life
4 Replies

2. Red Hat

Setup Local Backup

Hi, I need to setup a local back for the OS partition. Is there by default we can perform the local backup using rsync?. (0 Replies)
Discussion started by: gsiva
0 Replies

3. Red Hat

Static IP Address setup for vm as well as the host system

Hello, Greetings!! I have a server with 3 TB of disk space and 12 GB RAM and a i7 processor. What I did thus far is to install Oracle Enterprise Linux (OEL 5.7)as the host system and install Oracle Virtual box and created 3 VM's. Installed OEL 5.7 on one of the VM, working on installing... (1 Reply)
Discussion started by: rparavastu
1 Replies

4. IP Networking

Remote printer setup on solaris 10 host

Hi All, I am trying setup a remote printer on a solaris 10 server. The printer is online and working fine is solaris 8. I have added the pritner to /etc/hosts file and /etc/printers.conf ... I need to know followings: 1. How do I find the default pritner port on the old solaris machine... (0 Replies)
Discussion started by: mohullah
0 Replies

5. Linux

How to setup local IPv6 network

Hello everyone, I have question how i can setup local ipv6 network ? Here is my network: I have main ipv6 gw and server X for example that is connected with my main ipv6 gw and all ping6, traceroute6 is working. My local network is connected to one switch and main ipv4 gateway is that server X... (2 Replies)
Discussion started by: gild
2 Replies

6. UNIX for Advanced & Expert Users

Help! How to find the local host after few ssh hops to remote host???

I do a ssh to remote host(A1) from local host(L1). I then ssh to another remote(A2) from A1. When I do a who -m from A2, I see the "connected from" as "A1". => who -m userid pts/2 2010-03-27 08:47 (A1) I want to identify who is the local host who initiated the connection to... (3 Replies)
Discussion started by: gomes1333
3 Replies

7. UNIX for Dummies Questions & Answers

Local Printer Setup - HP DeskJet 610CL

Hello. I am really new to Unix and am trying to set up a local printer on a FreeBSD 6.2 machine. I was able to get some kind of garbage by going lptest > /dev/lpt0, but after I set up the spooler I get nothing but page after page of nothing. I checked the kernel configuration and it had the correct... (1 Reply)
Discussion started by: elliott_1951
1 Replies

8. Solaris

How to delete the files from local host to remote host

Hi all, i am copying .gz files from production server to development server using "scp" command.my requirement is after copying .gz files i want to delete old .gz files(two days back) in development server from production server. like this way i need to delelte .log ,.z and .dmp files... (3 Replies)
Discussion started by: krishna176
3 Replies

9. UNIX for Dummies Questions & Answers

local host

Dear Guys , Please again , i could not find a solution for my server linux red hat 9 . when i leave it about more than 5 min ideal it goes to something like sleep mode and all services stop and even TCP/IP .. what shall i do ??? another thing please , when i installed the server , i gave... (3 Replies)
Discussion started by: tamemi
3 Replies

10. UNIX Desktop Questions & Answers

Local Printer Setup

Hi to all, A real virgin to unix, so sorry for such a basic question. Have a older unix terminal with crashed server. Software resides to terminal. Don't have network printing capabilities. I removed network printer and gone local, but don't know how to redirect the device for local... (3 Replies)
Discussion started by: Rogie
3 Replies
Login or Register to Ask a Question