LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-03-2004, 06:15 AM   #1
nl1at
LQ Newbie
 
Registered: Mar 2004
Location: Uitgeest Netherlands
Posts: 26

Rep: Reputation: 15
Question Let sl0 use eth0 in lan


Hello all.
I'm trying to let sl0 use eth0.
The situation..
I've got an internal sliplink on sl0 to a application running in dosemu.
This works ok i can ping from and to the appl on the slackware 9.1 box.
But cant ping from lan to the appl .
Can ping from lan to sl0.
I activated ip_forward and sl0 uses eth0 out to lan which is ok but the packet that are send to reply aren't seen bij the slackbox.. (monitoring from the appl and with iptraf)
I've got no iptables rules running (should i?) (the box is on the lan behind freesco router)
the appl ip is 192.168.0.20
the sl0 ip is 192.168.0.19
the slackware 9.1 box eth0 is 192.168.0.10
the gateway is 192.168.0.1
Lan is 192.168.0.0
the slip script is like this..
Code:
slattach -s 38400 -p slip /dev/ptysa &
sleep 2
ifconfig sl0 192.168.0.19 netmask 255.255.255.255 mtu 1500 up
route add -host 192.168.0.20 dev sl0
What do i have to do to get trough to the appl?
Eddy
 
Old 03-04-2004, 06:16 AM   #2
nl1at
LQ Newbie
 
Registered: Mar 2004
Location: Uitgeest Netherlands
Posts: 26

Original Poster
Rep: Reputation: 15
Do i have to set a gw for the host on sl0?
 
Old 03-05-2004, 03:10 PM   #3
nl1at
LQ Newbie
 
Registered: Mar 2004
Location: Uitgeest Netherlands
Posts: 26

Original Poster
Rep: Reputation: 15
Solved other way

I have solved the problem by using dsn0 with dosnet.o module from dosemu.

15.1. The DOSNET virtual device.

Dosnet.o is a kernel module that implements a special virtual network
device. In combination with pktdrv.c and libpacket.c, this will enable
multiple dosemu sessions and the linux kernel to be on a virtual
network. Each has it's own network device and ethernet address.

This works just great!!
 
Old 08-10-2005, 09:00 AM   #4
Fin7PL
Member
 
Registered: Mar 2005
Location: Finland
Distribution: FreeBSD 9.0
Posts: 59

Rep: Reputation: 17
Hello!

I have same kind of problem but i´m not running software with Dosemu in SL0

i just run an software in sl0. I can connect to my software from locally (ip192.168.0.6) but not from other computers on my LAN. How can i route the sl0 ip (192.168.0.6) so it´s detected by other computers too. Via eth0

Thanks.

I solved the problem with
arp -Ds 192.168.0.6 now the sl0 192.168.0.6 shows on every machine on my LAN.


Last edited by Fin7PL; 08-10-2005 at 09:31 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 02:33 PM
eth0/LAN configuration problem TudeCat Linux - Newbie 2 05-17-2004 08:42 PM
My eth0 won't get an IP address on my LAN poeta_boy Linux - Networking 4 01-29-2004 03:00 PM
sharing internet through eth0 to sl0, iptables wont work Oxagast Linux - Networking 2 08-11-2003 07:36 PM
get rid of sl0 scheidel21 Linux - Networking 0 05-02-2003 08:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration