Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: cURIOUSgEORGE on May 18, 2011, 01:14:23 PM
-
Would anybody be so kind to tell me a "step by step" guide on changing my ip address, "in dummy terms".
I've done it in windows before so I know that it can be done but I'm completely lost in TC.
Thanks, George
-
Use the network button on the control panel.
-
Yes, I got to the Network Interface but I was looking for step by step instructions on how to fill it out.
IP Address __________ <--------------- I have a desktop, does that matter on the numbers I put and also how do I know if the number is already taking or not?
Network Mask _________ ?
Broadcast __________ ?
Gateway __________ ?
Nameservers __________ ?
__________ ?
How do I determine these numbers?
Thanks, George
-
If you are not using a local router then you probably need to get the correct settings from your ISP. They will probably have you use DHCP.
If you are in a workplace setting with IT people in charge of the network, they can help you. They might have you use DHCP.
IP Address: If you are assigning a specific address (static IP address), then you should know what addresses are available. If you are using DHCP then you don't need to fill in this field.
Assuming that you are not using DHCP, when you fill in the IP address the network tool will fill in some default, but not necessarily correct, guesses for some of the other fields.
On my home network, my router is at 192.168.0.1 (which is a common default address for a home router. Sometimes you see 192.168.1.1 or 10.0.something.) so I use addresses in the range 192.168.0.xxx. On my desktop system, I use 192.168.0.96 and the network setup tool fills in (I'm doing this from memory so it may not be completely accurate but should give you the idea):
network mask 255.255.255.0
broadcast 192.168.0.255
and
gateway 192.168.0.254
The gateway default is wrong in my case and I suspect it is wrong for the majority of home users with local routers. I always have to change it to 192.168.0.1 which is the address of my router.
My router also acts as a "caching DNS server" so I put in the address of the router here, as primary and my ISP's DNS server's IP address as the secondary.
-
gateway 192.168.0.254
The gateway default is wrong in my case and I suspect it is wrong for the majority of home users with local routers. I always have to change it to 192.168.0.1 which is the address of my router.
My router also acts as a "caching DNS server" so I put in the address of the router here, as primary and my ISP's DNS server's IP address as the secondary.
192.168.0.254 is common as gateway with certain brands of routers, as is 192.168.0.1 et al.
Alternatively one could use a public DNS service.
-
192.168.0.254 is common as gateway with certain brands of routers, as is 192.168.0.1 et al.
Alternatively one could use a public DNS service.
Or any other, depending on LAN settings. My GW is 192.168.0.6 but it can be 10.x.x.x or whatever. 192.168.1.1 is also common with certain SOHO routers. Without exact knowledge no easy way to find out topology. Use DHCP.
-
A good starting point is
http://tldp.org/HOWTO/NET3-4-HOWTO.html
-
What if I'm using microcore as a server, and all I have is a command line interface.
I purchased a dedicated server, and my host gives me:
Main IP
default gateway
subnet mask: 255.255.255.248
(+ 4 additional IPs)
So I ran:
tc@box:~$ sudo ifconfig eth0 [Main IP] netmask 255.255.255.248 up
tc@box:~$ sudo route add default gw [default gateway] netmask 255.255.255.248 eth0
Problem is, I still can't ping my default gateway (using iKVM to configure the server), but I can ping the default gateway from my desktop, but not the Main IP. So no connection to the internet from my server. Am I doing something wrong here, or is it something in the datacenter blocking me you think?
-
Try:
sudo route add default gw [default gateway]