Re: Setting Default NIC
On 5/10/06, John Cruz [EMAIL PROTECTED] wrote: I Just upgraded my freebsd machine to a new board, this one has an onboard NIC where as the old one just had a PCI 10/100 nic. I put the old NIC on the new board as well so I can have 2 running out of the machine, but I don't know how to set it so that the onboard NIC (vr0) is the default and the PIC nic (r10) is not, because when I unplug the PCI one all net connectivity shuts down. Here's my ifconfig and my rc.conf as always help is much appreciated. rl0 already is the default, if by default you mean the nic used when no nic is specified with command like tcpdump. This sounds like a routing problem. I am guessing that your default router is 192.168.42.1. If that is the case the systew will use the interface closest to the router to send packets out, which in this case is the vr0 interface. Try `ifconfig vr0 down` instead of unplugging it. Or give rl0 an IP in the range 192.168.42.2-8. *IFCONFIG rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=8VLAN_MTU inet6 fe80::210:b5ff:fe5f:c324%rl0 prefixlen 64 scopeid 0x1 inet 192.168.42.10 netmask 0xff00 broadcast 192.168.42.255 ether 00:10:b5:5f:c3:24 media: Ethernet autoselect (100baseTX full-duplex) status: active vr0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 inet6 fe80::250:70ff:fee8:7fe%vr0 prefixlen 64 scopeid 0x2 inet 192.168.42.9 netmask 0xff00 broadcast 192.168.42.255 ether 00:50:70:e8:07:fe media: Ethernet autoselect (100baseTX full-duplex) status: active plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff00 ***RC.CONF # -- sysinstall generated deltas -- # Sun Jan 1 19:02:32 2006 # Created: Sun Jan 1 19:02:32 2006 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. hostname=taurus.cruz #ifconfig_rl0=DHCP inetd_enable=YES moused_enable=YES moused_flags=-3 moused_port=/dev/psm0 moused_type=auto nfs_server_enable=YES rpcbind_enable=YES saver=daemon sshd_enable=YES usbd_enable=YES apache2_enable=YES apache_enable=YES mysqld_enable=YES mysql_enable=YES mountd_flags = -r # -- sysinstall generated deltas -- # Sun Jan 15 11:40:28 2006 # The Following specifies that the server is using a static IP address ifconfig_rl0=inet 192.168.42.10 netmask 255.255.255.0 ifconfig_vr0=inet 192.168.42.9 netmask 255.255.255.0 defaultrouter=192.168.42.1 hostname=taurus.cruz # -- sysinstall generated deltas -- # Sun Apr 9 01:33:24 2006 nfs_client_enable=YES # -- sysinstall generated deltas -- # Sun Apr 23 21:29:11 2006 font8x8=swiss-8x8 font8x14=NO font8x16=swiss-8x16 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- -- Perfection is just a word I use occasionally with mustard. --Atom Powers-- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Setting Default NIC
I Just upgraded my freebsd machine to a new board, this one has an onboard NIC where as the old one just had a PCI 10/100 nic. I put the old NIC on the new board as well so I can have 2 running out of the machine, but I don't know how to set it so that the onboard NIC (vr0) is the default and the PIC nic (r10) is not, because when I unplug the PCI one all net connectivity shuts down. Here's my ifconfig and my rc.conf as always help is much appreciated. *IFCONFIG rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=8VLAN_MTU inet6 fe80::210:b5ff:fe5f:c324%rl0 prefixlen 64 scopeid 0x1 inet 192.168.42.10 netmask 0xff00 broadcast 192.168.42.255 ether 00:10:b5:5f:c3:24 media: Ethernet autoselect (100baseTX full-duplex) status: active vr0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 inet6 fe80::250:70ff:fee8:7fe%vr0 prefixlen 64 scopeid 0x2 inet 192.168.42.9 netmask 0xff00 broadcast 192.168.42.255 ether 00:50:70:e8:07:fe media: Ethernet autoselect (100baseTX full-duplex) status: active plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff00 ***RC.CONF # -- sysinstall generated deltas -- # Sun Jan 1 19:02:32 2006 # Created: Sun Jan 1 19:02:32 2006 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. hostname=taurus.cruz #ifconfig_rl0=DHCP inetd_enable=YES moused_enable=YES moused_flags=-3 moused_port=/dev/psm0 moused_type=auto nfs_server_enable=YES rpcbind_enable=YES saver=daemon sshd_enable=YES usbd_enable=YES apache2_enable=YES apache_enable=YES mysqld_enable=YES mysql_enable=YES mountd_flags = -r # -- sysinstall generated deltas -- # Sun Jan 15 11:40:28 2006 # The Following specifies that the server is using a static IP address ifconfig_rl0=inet 192.168.42.10 netmask 255.255.255.0 ifconfig_vr0=inet 192.168.42.9 netmask 255.255.255.0 defaultrouter=192.168.42.1 hostname=taurus.cruz # -- sysinstall generated deltas -- # Sun Apr 9 01:33:24 2006 nfs_client_enable=YES # -- sysinstall generated deltas -- # Sun Apr 23 21:29:11 2006 font8x8=swiss-8x8 font8x14=NO font8x16=swiss-8x16 are those 2 nics going to be bonded into 1 interface? haveing 2 nics, on the same network isnt really going to earn you anything unless they are bonded or loadbalanced, either thru network configuration or switching hardware. if youre not going to go thru one of those techniques, then i would remove one nics. unless, long shot (tm), as in this has no technical base, just a guess... have you tried reversing the order in which they appear in the rc.conf file? i dont know if that matters, or if it reads the order of their IRQs, but it might be worth a shot if you really want both of those nics. jonathanh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]