LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 02-19-2004, 11:22 AM   #1
Louie55
Member
 
Registered: Oct 2003
Location: Nebraska
Distribution: SuSE 9.0, Redhat 9.0
Posts: 41

Rep: Reputation: 15
Question Routing Between Virtual Interfaces on Web Server


I am having a problem with my webserver and virtual hosts. I am a newbie to Linux, so bare with me. I am running SuSE 8.2, Apache 1.3. I want to have 3 separate websites from the one server, but only have one NIC. The webpages will only be viewed on the local LAN, not the internet. I have 3 interfaces configured on the server with the following attributes:

192.168.0.1-----Physical-----www.domain.com
192.168.0.10--- Virtual-------subdomain.domain.com
192.168.0.20----Virtual-------subdomain.domain.com

First, I should ask if it's ok to have all of these interfaces on the same 192.168.0.0 network?? The websites and DNS work fine if I use a browser on the server and type in the 3 separate addresses. My problem is accessing all 3 websites from other computers on the LAN. If I use a different computer on the LAN, I can only get to the Website that is configured on the Physical 192.168.0.1 interface, but not the other 2 on the Virtual Interfaces. Also, the DNS lookups for the 2 virtual interfaces do not work from other computers on the LAN (but work from the server fine)even though I have the DNS server address set to 192.168.0.1 on all computers. The only thing I can think of is that the server is not routing requests from the physical interface to the virtual interfaces. How can I get this to happen? I have tried messing with routing, but nothing has worked. This is probably a no brainer, but I have no idea where to go next. Please Help.

Last edited by Louie55; 02-19-2004 at 11:27 AM.
 
Old 02-20-2004, 07:19 AM   #2
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
Firstly if you just want different http websites you do NOT need IP aliases on the NIC. You can use the apache virtual server directive to serve different pages.

You say your other computers cannot resolve your domains. Is your UDp/TCP port 53 open on the .1 address. Have you blocked any queries based on IP addresses. Can you ping the 192.168.0.1 address from other computers?

what happens when you do the following from other computers

$nslookup
>server 192.168.0.1
>subdomain.domain.com

Do you get timed out or do you get a reply?


Can you telnet to port 53 from other computers?

$ telnet 192.168.0.1 53

debug a little more and post.
 
Old 02-20-2004, 09:17 AM   #3
Louie55
Member
 
Registered: Oct 2003
Location: Nebraska
Distribution: SuSE 9.0, Redhat 9.0
Posts: 41

Original Poster
Rep: Reputation: 15
Thank you for the reply. Yes, I can get to port 53 of the 192.168.0.1 computer and yes I can ping. But, like you suggested, I have switched to using Name-Based Virtual Hosts instead of IP-Based virtual hosts and everything works fine now. Thanks for the response.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Interfaces geony Linux - Networking 6 02-13-2005 11:25 AM
Having problems routing between two interfaces... stakhous Linux - Networking 8 12-05-2004 06:10 PM
Routing between interfaces? cryptical Linux - Networking 13 08-18-2004 07:29 AM
Problem with routing between interfaces Kostko Linux - Networking 6 12-01-2003 01:47 PM
Setting of Interfaces and Routing Table swmok Linux - Networking 1 07-31-2003 06:44 AM


All times are GMT -5. The time now is 06:36 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration