Hi all.
I have a freebsd box with IP 192.168.1.5. The serial port has a cable connecting freebsd and an external device.
I set an IP address to the external device (serial port) using:
and I can communicate using TCP/IP sockets with the external device. I have also a windows box on the same network with the ip 192.168.1.2. If I add the following command to windows box I can reach the external device from windows box too.
So, it seems that everything works fine.
Now I would like to configure the sl0 interface to send broasctas traffic to the external device too. Please, could you tell me how to configure the sl0 to support broadcast or multicast?
I am trying this on the freebsd box
But when I run the ifconfig -a command I just see this for the sl0 interface:
1. Why BROADCAST flag is not turned on? How can i turn it on?
2. It says that multicast flag is on. Does sl0 receives multicast msgs using this configuration? If so, what is the ip address to send multicast to sl0?
Thanks a lot
Alex
I have a freebsd box with IP 192.168.1.5. The serial port has a cable connecting freebsd and an external device.
I set an IP address to the external device (serial port) using:
Code:
slattach -l -f -s 2400 /dev/cuad0
ifconfig sl0 192.168.1.5 192.168.1.9
route add -host 192.168.1.9 192.168.1.5
and I can communicate using TCP/IP sockets with the external device. I have also a windows box on the same network with the ip 192.168.1.2. If I add the following command to windows box I can reach the external device from windows box too.
Code:
route add 192.168.1.2 mask 255.255.255.255 192.168.1.9
So, it seems that everything works fine.
Now I would like to configure the sl0 interface to send broasctas traffic to the external device too. Please, could you tell me how to configure the sl0 to support broadcast or multicast?
I am trying this on the freebsd box
Code:
slattach -l -f -s 2400 /dev/cuad0
ifconfig sl0 broadcast 192.168.1.255 192.168.1.5 192.168.1.9
route add -host 192.168.1.9 192.168.1.5
But when I run the ifconfig -a command I just see this for the sl0 interface:
Code:
sl0:flags=108011<UP,POINTTOPOINT,MULTICAST,NEEDSGIANT> metric 0 mtu 552
inet 192.168.1.5 --> 192.168.1.9 netmask 0xffffff00
1. Why BROADCAST flag is not turned on? How can i turn it on?
2. It says that multicast flag is on. Does sl0 receives multicast msgs using this configuration? If so, what is the ip address to send multicast to sl0?
Thanks a lot
Alex