user
October 15, 2008, 8:37pm
#1
Hi all,
In order to get network access from my university, I have to change my hostname to some user ID. I have tried various things, but my computer is represented ‘blank’ on the IT (windows) DHCP server. The command ‘hostname -a’ outputs
myhostname myhostname myhostname myhostname.site
The ‘hostname -d’ command gives blank output, but I don’t know how to change it (nor if it is important).
Any help would be greatly appreciated, because I may be blocked from network access.
Thanks.
===========
I’m using SuSE 11.0.
/etc/dhclient.conf:
…
send dhcp-client-identifier “myhostname”;
send host-name “myhostname”;
…
/etc/sysconfig/network/ifcfg-eth0:
DHCP_HOSTNAME=‘myhostname’
/etc/hosts:
127.0.0.1 localhost
127.0.0.1 myhostname myhostname
192.168.0.1 myhostname myhostname
127.0.0.2 myhostname.site myhostname
/etc/sysconfig/network/dhcp:
DHCLIENT_BIN=""
DHCLIENT_DEBUG=“no”
DHCLIENT_SET_HOSTNAME=“no”
DHCLIENT_MODIFY_RESOLV_CONF=“yes”
DHCLIENT_SET_DEFAULT_ROUTE=“yes”
DHCLIENT_MODIFY_NTP_CONF=“no”
DHCLIENT_MODIFY_NIS_CONF=“yes”
DHCLIENT_SET_DOMAINNAME=“yes”
DHCLIENT_KEEP_SEARCHLIST=“yes”
DHCLIENT_LEASE_TIME=""
DHCLIENT_TIMEOUT=“999999”
DHCLIENT_HOSTNAME_OPTION=“myhostname”
DHCLIENT_CLIENT_ID=“myhostname”
DHCLIENT_VENDOR_CLASS_ID=""
DHCLIENT_RELEASE_BEFORE_QUIT=“no”
DHCLIENT_SCRIPT_EXE=""
DHCLIENT_ADDITIONAL_OPTIONS=""
DHCLIENT_SLEEP=“0”
DHCLIENT_WAIT_AT_BOOT=“15”
DHCLIENT_MODIFY_SMB_CONF=“yes”
WRITE_HOSTNAME_TO_HOSTS=“yes”
tuxituk
October 16, 2008, 5:58pm
#2
Hi,
You have other settings in your ifcfg-eth0 config file right ?
i.e. BOOTPROTO=‘dhcp’
etc.
Can you paste a copy of your ifcfg-eth0 config
ta
J
user
October 16, 2008, 6:24pm
#3
Thanks for your reply. Yeah, I just posted some lines of the files in my post. My /etc/hosts file is also longer.
Here is my complete ifcfg-eth0 file:
BOOTPROTO=‘dhcp’
BROADCAST=’’
ETHTOOL_OPTIONS=’’
IPADDR=’’
MTU=’’
NAME=‘88E8071 PCI-E Gigabit Ethernet Controller’
NETMASK=’’
NETWORK=’’
REMOTE_IPADDR=’’
STARTMODE=‘auto’
USERCONTROL=‘no’
DHCP_HOSTNAME=‘myhostname’
tuxituk
October 16, 2008, 7:41pm
#4
Great, thought so. I just like to check
Well the if-cfgeth0 config file looks fine.
Your hostname -d reporting nothing is because your domain suffix is not set. I would expect this as it will be issued from the DHCP server (or should be anyway).
Can you check the output from ifconfig -a and paste it here also.
ta
J
user
October 16, 2008, 9:21pm
#5
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1D:72:07:91:0B
inet addr:129.67.157.240 Bcast:129.67.159.255 Mask:255.255.252.0
inet6 addr: fec0::8:21d:72ff:fe07:910b/64 Scope:Site
inet6 addr: 2002:8143:9d9b:8:21d:72ff:fe07:910b/64 Scope:Global
inet6 addr: fe80::21d:72ff:fe07:910b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:432232 errors:0 dropped:0 overruns:0 frame:0
TX packets:59773 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:60944108 (58.1 Mb) TX bytes:9006564 (8.5 Mb)
Interrupt:16