BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old August 11th, 2004, 05:49 PM
soda0289 soda0289 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 17 soda0289 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Two ethernet cards and two subnets

I have two seperate subnets that are 10.2.1/24 and 10.1.1/24. i have apached setup to acept connections on 10.1.1.21 and 10.2.1.21 but you see the problem is that I cannot get FreeBSD to accept connections on both subnets. They only way i have it now is that the subnets gateay who is default works. Please help me AS FAST AS YOU CAN!!

Reply With Quote
  #2  
Old August 11th, 2004, 06:00 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 18 m 43 sec
Reputation Power: 797
Please post the output of /sbin/ifconfig and /usr/bin/netstat -ar here
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month

Reply With Quote
  #3  
Old August 11th, 2004, 06:56 PM
soda0289 soda0289 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 17 soda0289 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ifconfig:


fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=3<RXCSUM,TXCSUM>
inet 10.1.1.21 netmask 0xffffff00 broadcast 10.1.1.255
inet6 fe80::202:b3ff:fed9:e6f7%fxp0 prefixlen 64 scopeid 0x1
ether 00:02:b3:d9:e6:f7
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=3<RXCSUM,TXCSUM>
inet 10.2.1.21 netmask 0xffffff00 broadcast 10.2.1.255
inet6 fe80::20c:f1ff:fe74:7167%em0 prefixlen 64 scopeid 0x2
ether 00:0c:f1:74:71:67
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4



netstat -rn -f inet:

Routing tables

Internet:
Destination Gateway Flags Refs Use Netif Expire
default 10.2.1.1 UGS 0 2373 em0
10.1.1/24 link#1 UC 0 0 fxp0
10.1.1.1 00:06:25:75:bc:e3 UHLW 0 123 fxp0 1122
10.1.1.10 00:e0:18:4f:30:71 UHLW 0 2645 fxp0 862
10.1.1.21 127.0.0.1 UGHS 0 395 lo0
10.1.1.255 ff:ff:ff:ff:ff:ff UHLWb 0 140 fxp0
10.2.1/24 link#2 UC 0 0 em0
10.2.1.1 00:04:5a:d0:17:27 UHLW 1 0 em0 1193
10.2.1.21 127.0.0.1 UGHS 0 0 lo0
10.2.1.255 ff:ff:ff:ff:ff:ff UHLWb 0 140 em0
127.0.0.1 127.0.0.1 UH 2 145 lo0

Reply With Quote
  #4  
Old August 11th, 2004, 11:46 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 18 m 43 sec
Reputation Power: 797
Your network setup looks ok to me. Did you say you're having trouble with Apache accepting connections on both interfaces? In that case, please post your httpd.conf file here. Most likely this smells like an apache config issue.

Reply With Quote
  #5  
Old August 13th, 2004, 02:45 PM
soda0289 soda0289 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 17 soda0289 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
No apache is fine could it be my nic card then?

Reply With Quote
  #6  
Old August 19th, 2004, 03:05 AM
namotco namotco is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Madison
Posts: 374 namotco User rank is Sergeant Major (2000 - 5000 Reputation Level)namotco User rank is Sergeant Major (2000 - 5000 Reputation Level)namotco User rank is Sergeant Major (2000 - 5000 Reputation Level)namotco User rank is Sergeant Major (2000 - 5000 Reputation Level)namotco User rank is Sergeant Major (2000 - 5000 Reputation Level)namotco User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 18 h 8 m 52 sec
Reputation Power: 30
Send a message via AIM to namotco
If you shut down one interface can you ping the other one (from the other side) ? explain the problem in more detail. are both interfaces able to send packets?

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Two ethernet cards and two subnets


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway