(Say for this example IP address is 203.2.218.29, so the FQDN or fully qualified domain name is insm05.abc.net.au)
Ok. theres basically 3 parts. I dont know any admin tools on Suse, if u dont as well ull have to edit manually.
When I switched from Windoze to linux the only parts I had to enter where the name of my box, IP address, device, gateway and DNS servers. Up in 5mins in comparison to the +20mins under Windoze...
1. open up /etc/hosts and add a line containing:
(ure IP)(tab)(FQDN)(tab)(host part of FQDN)
so it looks like, from the example:
203.2.218.29 insm05.abc.net.au insm05
save, close.
2. Open up /etc/resolv.conf and enter the 2 DNS addresses ure ISP gave u. save, close.
3. Open up /etc/sysconfig/network create/change the next lines (ill be using the example):
NETWORKING=yes
HOSTNAME="insm05"
DOMAINNAME=
GATEWAYDEV=eth0
GATEWAY=203.2.218.1
save, close
4. Open up /etc/sysconfig/network/ifcfg-eth0 create/change the next lines (ill be using the example):
DEVICE="eth0"
IPADDR="203.2.218.29"
NETMASK="225.225.254.0"
ONBOOT="yes"
BOOTPROTO="dhcp"
save, close, reboot.
Now try & run dhcpcd with the debug option (-d):
"/sbin/dhcpcd -d"
and itll put its connection info in the logs.
Quote:
(..)However, my ip never got changed cause I didn't exceed the 1 week lease time at all.
|
No, its a setting in the DHCP server that sets lease time.
Some server allow u a bit of tweakage but I dont think DHCP addresses change that much for administrative reasons. The only time it screws up is when u change ethernet card, cuz IP addresses are leased to a MAC address that is different for *each* card.
HTH.