Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Linux n00b here so excuse me in advance for an glaringly easy questions. I have just installed Debian on an old box (Im having alot of problems with X but thats another thread) however I cant see the box on the network.
Ok first off can you guys point me to a really good resource for a Linux networking n00b that way I dont have to be bothering you.
I used the ifconfig command to give me the IP address of the box and hostname to get its hostname. Now when I go to ping it I can ping via IP no problem but not via hostname. Any ideas?
I intend running a very basic webserver and file server from the box so if you guys know any very basic (a.k.a n00b friendly) resources for how to go about doing this with Debian it would be much appreciated.
Ok first off can you guys point me to a really good resource for a Linux networking n00b that way I dont have to be bothering you.
Either search google or tldp.org
Quote:
I used the ifconfig command to give me the IP address of the box and hostname to get its hostname. Now when I go to ping it I can ping via IP no problem but not via hostname. Any ideas?
Open ur /etc/hosts file and make and entry like this
<ip of ur system > <hostname of ur system>
for example
192.168.1.1 alpha
Quote:
I intend running a very basic webserver and file server from the box so if you guys know any very basic (a.k.a n00b friendly) resources for how to go about doing this with Debian it would be much appreciated.
You can not ping by hostname unless you have it in your hosts file.
Are you trying to ping by hostname from what type of computer. I assume that this is a windows box.
If on 98
go to command promt c:\edit hosts
XP Home
c:\windows\system32\drivers\etc\edit host
XP Pro
c:\winnt\system32\drivers\etc\edit hosts
Linux
/etc/vi hosts
For your web server look into apache.org
If you have installed the full cd for linux see if you can start
httpd
I cant paste the output of /etc/hosts cause I have no way of getting it off the system. I cant even get SSH to work. It just seems everything networky is fucked. Ive installed proftpd and it wont work either. The only thing I can do i ping the bloody machine and bing apache up on 192.168.0.148:80.
Any chance you could help me get SSH sorted. IVe set it up perfectly according to the exmaples from the site and its running fine it just wont accet my password.
I just realized that you didn't know that there is a software firewall built into linux. Either iptables or ipchains....Should be the first with most current updates, but I think kernal 2.4 uses ipchains or was it before 2.4....I'm not sure on this one.
Id no idea that there was a firewall built in, I suspected as much but I wonder why its not stated in any of the tutorials and guides Ive read about Linux networking. Its one of the things that annoys me about linux documentation there is alot of assumption on the part of the writter that the reader knows certain things. Anywho...
I have two machines, elvis and workstation on a simple network both connected to a dsl combo router. They can ping each other fine via IP but not by name.
Elvis 192.168.0.148
Workstation 192.168.0.149
In my /etc/hots file the following:
127.0.0.1 localhost evlis
192.168.0.148 elvis
Ive checked and iptables doesnt seem to be working it gives the following error when I put in the command iptables -L
cant initialise IPTables table 'Filter' : IP Tables who? (do you need insmod?) Perhaps your iptables or kernel need to be updated.
I have made sure that the kernal and the iptables are the most up to date.
I managed to get FTP up and running kind of. I can log in by user but not anon. Its all to do with groups and permissions etc. Know any good tutorials for this?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.