Todor Dragnev
2006-Jun-19 15:09 UTC
bridge.ko, sysctrl.conf and ifconfig_XXX_name, SCSI as a boot device
Hello list, I have two minor problems: First one: I want to make bridging on two of my interfaces but have problem when I use ifconfig_XXX_name directrive in rc.conf . After each restart of machine I must enter manually commands for sysctrl to enable bridging. After reboot dmesg shows: interface net0 Not found in bridge interface net2 Not found in bridge /etc/rc.conf: ifconfig_rl0_name="net0" ifconfig_rl1_name="net1" ifconfig_rl2_name="net2" /etc/sysctrl.conf: net.link.ether.bridge.enable=1 net.link.ether.bridge.config=net0,net2 Second problem: I have SCSI controller with 40GB hard disk and two ATA disks. My FreeBSD is installed on da0 (SCSI). Last night I connect USB stick to the box and transfer some files. On morning I found that machine is restarted because of power outage and refuse to boot. After first wave of panic I found that USB Flash Disk is still attached and kernel change naming order of SCSI devices: Now ad0 was USB Flash, SCSI -FUJITSU - ad1. I thing that is not good idea to naming USB devices first and after this real SCSI devices. So, what is the right workaround of these problems? Regards, Todor Dragnev ad0: 238475MB <Seagate ST3250824A 3.AAE> at ata0-master UDMA100 ad2: 152627MB <Seagate ST3160023A 8.01> at ata1-master UDMA100 da0 at sym0 bus 0 target 15 lun 0 da0: <FUJITSU MAP3367NP 0106> Fixed Direct Access SCSI-3 device da0: 40.000MB/s transfers (20.000MHz, offset 16, 16bit), Tagged Queueing Enabled da0: 35046MB (71775284 512 byte sectors: 255H 63S/T 4467C) umass0: Generic Mass Storage Device, rev 2.00/1.02, addr 2 da1 at umass-sim0 bus 0 target 0 lun 0 da1: <Multi Flash Reader 1.00> Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: 982MB (2012160 512 byte sectors: 64H 32S/T 982C)
Alban
2006-Jun-19 17:21 UTC
bridge.ko, sysctrl.conf and ifconfig_XXX_name, SCSI as a boot device
On Jun 19, 2006, at 4:38 PM, Todor Dragnev wrote:> First one: > > I want to make bridging on two of my interfaces but have problem > when I use > ifconfig_XXX_name directrive in rc.conf . After each restart of > machine I > must enter manually commands for sysctrl to enable bridging.> /etc/sysctrl.conf:There's no 'r' in sysctl. Maybe that's why? ;) -- Alban Hertroys Sometimes you wake up and you think: "Galileo was right, the world does turn" !DSPAM:74,4496dd3d333521941817249!
Brooks Davis
2006-Jun-19 18:14 UTC
bridge.ko, sysctrl.conf and ifconfig_XXX_name, SCSI as a boot device
On Mon, Jun 19, 2006 at 05:38:43PM +0300, Todor Dragnev wrote:> Hello list, > I have two minor problems: > > First one: > > I want to make bridging on two of my interfaces but have problem when I use > ifconfig_XXX_name directrive in rc.conf . After each restart of machine I > must enter manually commands for sysctrl to enable bridging. > > After reboot dmesg shows: > interface net0 Not found in bridge > interface net2 Not found in bridge > > /etc/rc.conf: > ifconfig_rl0_name="net0" > ifconfig_rl1_name="net1" > ifconfig_rl2_name="net2" > > /etc/sysctrl.conf: > net.link.ether.bridge.enable=1 > net.link.ether.bridge.config=net0,net2/etc/sysctl.conf is processed really early in the startup process so the renaming hasn't happend yet. Using the origional names would work, but would be confusing. If you want the naming, I'd suggest switching to if_bridge which can be configured entierly using rc.conf variables. -- Brooks -- Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060619/df26cf35/attachment.pgp