The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 why i cant use services from 2nd subnet.
Author: K0re 
Date:   19-10-00 23:27

hi.
I cant use services based on FreeBSD 4.0 - Realese (with Bridge compiled in kernel) from subnet2 - for ex. i cant telnet on FBSD from there - opposite to subnet 1 wich works fine.


FBSD z Bridge
- - - - - - - - -
Subnet1 | | Subnet2
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| | | |
NT(192.168.0.2/25) |<===>| W98 (192.168.0.130/25)
gw (192.168.0.1 - fxp0) | | | | gw (192.168.0.129 - ed1)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| fxp0 ed1 |
- - - - - - - - - -
fxp0 192.168.0.1/25
ed1 192.168.0.129


> netstat -nr
Routing tables

Internet:
Destination Gateway Flags Netif Expire
127.0.0.1 127.0.0.1 UH lo0
192.168/25 link#1 UC fxp0 =>
192.168.0.128/25 link#3 UC ed1 =>
...

> ifconfig fxp0
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.0.1 netmask 0xffffff80 broadcast 192.168.0.127
inet6 fe80::2d0:b7ff:feaf:a29d%fxp0 prefixlen 64 scopeid 0x1
ether 00:d0:b7:af:a2:9d
media: autoselect (100baseTX <full-duplex>) status: active
supported media: autoselect 100baseTX <full-duplex> 100baseTX 10baseT/UTP <full-duplex> 10baseT/UTP
> ifconfig ed1
ed1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.0.129 netmask 0xffffff80 broadcast 192.168.0.255
inet6 fe80::280:48ff:feef:9b3f%ed1 prefixlen 64 scopeid 0x3
ether 00:80:48:ef:9b:3f
> dmesg
...
fxp0: <Intel EtherExpress Pro 10/100B Ethernet> port 0xe800-0xe83f mem 0xe3400000-0xe34fffff,0xe3500000-0xe3500fff irq 11 at device 9.0 on pci0
fxp0: Ethernet address 00:d0:b7:af:a2:9d
fxp0: supplying EUI64: 00:d0:b7:ff:fe:af:a2:9d
ed1: <Compex RL2000 PnP Series Ethernet Adapter> at port 0x220-0x23f irq 5 on isa0
ed1: address 00:80:48:ef:9b:3f, type NE2000 (16 bit)
IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to accept, logging limited to 10 packets/entry by default
DUMMYNET initialized (000106)
IP Filter: initialized. Default = pass all, Logging = enabled
IP Filter: v3.3.8
fxp0: starting DAD for fe80:0001::02d0:b7ff:feaf:a29d
ed1: starting DAD for fe80:0003::0280:48ff:feef:9b3f
ed1: DAD complete for fe80:0003::0280:48ff:feef:9b3f - no duplicates found
fxp0: DAD complete for fe80:0001::02d0:b7ff:feaf:a29d - no duplicates found
....

> cat /etc/hosts
127.0.0.1 localhost.fbsd.main localhost
192.168.0.1 FBSD_fxp0
192.168.0.1 fbsd.main fbsd
192.168.0.2 K0re
192.168.0.129 FBSD_ed1
192.168.0.130 M0ni

> cat /etc/host.conf
hosts
bind

> cat /etc/hosts.allow
...
ALL : 192.168.0.2 : allow
ALL : 192.168.0.130 : allow
...

pings are working btw hosts - only as ive told before subnet 2 cant use services from FBSD
I can ping from NT to W98 soo i think that bridge works fine.
Whats wrong ?


Disconect ;-(
Status_Mail:=End;
K0re Disconector !
All Rights to K0reŽ

GOD is REAL unless he is declareted as an INTEGER or TRUE = FALSE;

Reply To This Message
 
 RE: why i cant use services from 2nd subnet.
Author: Dan Larsson 
Date:   20-10-00 08:53

You must not configure your system with different addreses on your FreeBSD
box. Set one address and issue a 'ifconfig <interface> up' on the other.

Remember that a bridge does not route, thus its interfaces must all be within
the same subnet.

more info is available in the handbook and the bridge man page.

Good Luck!

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org