Hi,
First off all! All the route,ifconfig place them in /etc/rc.d/rc.inet1
(for slackware).
Put those command in your rc.inet1 file:
ifconfig eth0 192.168.10.1 netmask 255.255.255.0
route add 127.0.0.1 lo
route add 192.168.10.1 eth0
route add -net 192.168.10.0 netmask 255.255.255.0 eth0
route add default gw 192.168.10.1
On the Windoze workstation use TCP/IP protocol from Micro$oft and set it
up like this:
IP address: 192.168.10.2
Netmask: 255.255.255.0
Gateway: 192.168.0.1
DNS: hostname: amd domain name: intnet.mu
to be able to access your server using it's name instead of it's ip you
must run a DNS server on your linux box!
Read the documentation that comes with the bind packages usualy in
/usr/doc/bindxxxxxx
Cheers,
\\\___///
\\ _ _ //
( @ @ )
+------------------oOOo-(_)-oOOo--------------------------------------------+
| Antoniu-George SAVU Remote/Local Server administrator |
| str BUCURESTI nr55/1 3400 Cluj-Napoca CJ ROMANIA |
| E-mail [EMAIL PROTECTED] http://www.iskcon.net/santoniu |
| ICQ #17819626 IRC Celularu DalNet @#romania UnderNet #linux #romania |
| Phone +4(0) 094 238978 Message http://www.message.ro for 094238978 |
| Remote Server Administrator for HareKrishna NetWorks FL, USA |
| NetContents NetWorks FL, USA |
| >>> Linux Kernel 3.0.0 should accept: ln -s Micro$oft /dev/null <<< |
+-----------------------------Oooo------------------------------------------+
oooO ( )
( ) )/
\( (_)
(_)
On Thu, 26 Nov 1998, Patrick Ng wrote:
> Hi there
>
> I am new to network using linux.
>
>
> i have two pc's at home. I connected them together and did the following:
>
> on the linux box named kro.intnet.mu after doing hostname kro.intnet.mu:
>
> 1. ifconfig lo 127.0.0.1
> 2. route add 127.0.0.1
> 3. ifconfig eth0 192.168.10.1 netmask 255.255.255.0 up
> 4. route add -net 192.168.10.0
> 5. In the /etc/hosts.conf i added the following:
>
> 192.168.10.1 kro.intnet.mu kro
> 192.168.10.2 amd.intnet.mu amd
>
> on the windows machine
> i did :
>
> in the windows directory i looked of the hosts file and add the two lines
> as above
>
>
>
> My problem is that I cannot telnet doing the following from the windows
> box:
>
> telnet kro.intnet.mu but can do so only with telnet 192.168.10.1
>
> I wonder why i cannot use the hostname of the linux machine cause on the
> linux box i can do a ping 192.168.10.2 or ping amd or ping amd.intnet.mu
> and it associates the name with the ip address.
>
> Further more, why does i have to configure the eth0 everytime i reboot my
> linux box?
>
> Thanks
>
> Patrick Ng
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]