Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Janm on August 31, 2005, 09:51:20 PM
-
Any body who know that please
How can i change IP addres from command line via dhcp from ISP.
Not from server-manager
only some sort of command i can do via putty
Jan
-
ifconfig
-
ifconfig
Yes boris what i ment was how do i change it
from a fixed to a dynamic via dhcp with a command
ifconfig eth1 whatever i dont know
Jan
by the way thanks for reply
-
I believe that "normally" or at least very often it will not be possible to "order" a new dynamic ip from the command line.
The lease from the ip adresses can vary a lot from isp to isp. For some connections you will receive a ip that will be valid for some months while other will change ip at each logon.
Don't know if any isp will renew or change the ip adress if you restart the cards, i will guess not.
check syntax with "man ifconfig". (I think you can do "ifconfig down" and "ifconfig up" from console, dont remember for sure.
In most/many cases I belive it will not be easy to change ip from the shell unless making a complete relogon. (And for some isp's this will not work either.)
-
I believe that "normally" or at least very often it will not be possible to "order" a new dynamic ip from the command line.
The lease from the ip adresses can vary a lot from isp to isp. For some connections you will receive a ip that will be valid for some months while other will change ip at each logon.
Don't know if any isp will renew or change the ip adress if you restart the cards, i will guess not.
check syntax with "man ifconfig". (I think you can do "ifconfig down" and "ifconfig up" from console, dont remember for sure.
In most/many cases I belive it will not be easy to change ip from the shell unless making a complete relogon. (And for some isp's this will not work either.)
Okay thanks Arne
I am testing somthing and i lost connection so i change the computer to another one
i need to know what rpm is used for this when you just
install a new server you know where it asked if you whant to connect via client ip address as identifier
Jan
-
Any body who know that please
How can i get IP addres from command line via dhcp from ISP.
Not from server-manager
only some sort of command i can do via putty
If you want to change the WAN setting, log in as "admin', and choose "Configure this server" from the menu.
-
Any body who know that please
How can i get IP addres from command line via dhcp from ISP.
Not from server-manager
only some sort of command i can do via putty
If you want to change the WAN setting, log in as "admin', and choose "Configure this server" from the menu.
Yes charlie
That i know but the problem is when i start the server
its okay but after 6 min i lose conection i have a fixed ip to put in but that only hold 6 min also but when i use dhcp client identifier its ok but i cant change from fixed to automatic via dhcp if you understand that sorry for my english to old to learn more :-)
Jan
-
That i know but the problem is when i start the server
its okay but after 6 min i lose conection ...
Then you need to find out why you lose connection. What type of network connection do you have? Who is your ISP? Maybe someone can recommend correct settings.
My guess is just DHCP - if your ISP is static, then your ISP should always give you the same correct IP via DHCP.
-
That i know but the problem is when i start the server
its okay but after 6 min i lose conection ...
Then you need to find out why you lose connection. What type of network connection do you have? Who is your ISP? Maybe someone can recommend correct settings.
My guess is just DHCP - if your ISP is static, then your ISP should always give you the same correct IP via DHCP.
Hej Charlie
I use tele.dk tdc.dk who owns the cobber in denmark
ADSL 4MBIT always connected Payed for 1 fixed Ip 83.92.166.114 but they say i should use get ip automatic via DHCP that i dont understad becourse i pay for 1 fixed ip
IPADDR=83.92.166.114 :this is fixed always
NETMASK=255.255.255.240
NETWORK=83.92.166.112
BROADCAST=83.92.166.127
GATEWAY=83.92.166.113
DOMAIN=opasia.dk
DNS=193.162.153.164,194.239.134.83
DHCPSID=80.166.137.209
DHCPGIADDR=80.166.137.209
DHCPSIADDR=0.0.0.0
DHCPCHADDR=00:04:AC:45:A3:6A
DHCPSHADDR=00:0A:F3:C2:44:38
DHCPSNAME=
LEASETIME=3600
RENEWALTIME=1800
REBINDTIME=3000
INTERFACE=eth1
CLASSID="Linux 2.4.20-37.7.legacy i686"
CLIENTID=00:04:AC:45:A3:6A
maybe this can help
Regards Jan DK
-
ADSL 4MBIT always connected Payed for 1 fixed Ip 83.92.166.114 but they say i should use get ip automatic via DHCP that i dont understad becourse i pay for 1 fixed ip
If your ISP says to use DHCP you should use DHCP. If you pay for a fixed IP, your ISP should always give you the same IP (via DHCP). If they don't, complain.
-
ADSL 4MBIT always connected Payed for 1 fixed Ip 83.92.166.114 but they say i should use get ip automatic via DHCP that i dont understad becourse i pay for 1 fixed ip
If your ISP says to use DHCP you should use DHCP. If you pay for a fixed IP, your ISP should always give you the same IP (via DHCP). If they don't, complain.
Thanks for the answer Charlie
I found a solution with great help from a friend
Just delete the 4 files in
/etc/dhcpcd
*.cache
*.info
*.old
*.pid
then run command
/sbin/dhcpcd -R
That did the trick for me and i am up and running again just i case other got the same problem
Jan Mortensen
It just locked up again
so i did the command 1 more time and connection was okay again i dont know why i is kicked of ?
Jan