Definition of interfaces in ifconfig
Hi, When I do: # ifconfig I see the following interfaces listed: tx0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 inet 192.168.254.3 netmask 0xff00 broadcast 192.168.254.255 inet6 fe80::2e0:29ff:fe11:ff8a%tx0 prefixlen 64 scopeid 0x1 ether 00:e0:29:11:ff:8a media: Ethernet autoselect (100baseTX full-duplex) status: active lp0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST mtu 1500 sl0: flags=c010POINTOPOINT,LINK2,MULTICAST mtu 552 faith0: flags=8002BROADCAST,MULTICAST mtu 1500 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet 127.0.0.1 netmask 0xff00 ppp0: flags=8010POINTOPOINT,MULTICAST mtu 1500 I entered sysinstall/configure/network/network devices and found out what they all are. The faith0 device was listed as unknown. I know tx0 is my one and only nic, we can keep it. lp0 is the parallel port, don't need it, don't plan to do any printing from this machine. lo0 is the loopback interface, that's cool. I know I don't need a PPP or SLIP interface, I have a LAN connection to the Internet, no modem. I was able to do: # ifconfig faith0 destroy And eliminate the faith0 unknown device. When I try that with sl0 and ppp0 I get an error: ifconfig: SIOCIFDESTROY: Invalid Argument. I realize that tx0 and lo0 are the only ones that are UP...are the others occupying space in memory? Can I get rid of some of these guys? How? Thanks, Charles ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Definition of interfaces in ifconfig
On Sat, Aug 16, 2003 at 03:58:17PM -0500, Charles Howse wrote: Hi, When I do: # ifconfig I see the following interfaces listed: tx0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 inet 192.168.254.3 netmask 0xff00 broadcast 192.168.254.255 inet6 fe80::2e0:29ff:fe11:ff8a%tx0 prefixlen 64 scopeid 0x1 ether 00:e0:29:11:ff:8a media: Ethernet autoselect (100baseTX full-duplex) status: active lp0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST mtu 1500 sl0: flags=c010POINTOPOINT,LINK2,MULTICAST mtu 552 faith0: flags=8002BROADCAST,MULTICAST mtu 1500 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet 127.0.0.1 netmask 0xff00 ppp0: flags=8010POINTOPOINT,MULTICAST mtu 1500 I entered sysinstall/configure/network/network devices and found out what they all are. The faith0 device was listed as unknown. I know tx0 is my one and only nic, we can keep it. lp0 is the parallel port, don't need it, don't plan to do any printing from this machine. lo0 is the loopback interface, that's cool. I know I don't need a PPP or SLIP interface, I have a LAN connection to the Internet, no modem. I was able to do: # ifconfig faith0 destroy And eliminate the faith0 unknown device. When I try that with sl0 and ppp0 I get an error: ifconfig: SIOCIFDESTROY: Invalid Argument. I realize that tx0 and lo0 are the only ones that are UP...are the others occupying space in memory? Can I get rid of some of these guys? How? You can get rid of the superfluous interfaces by building yourself a custom kernel with the drivers for those devices commented out. Be sure and check the man pages (eg sl(4), ppp(4), faith(4)) and in LINT (4.x) or NOTES (5.x) to verify you aren't chopping out something useful. Nb. the ppp0 interface can only be generated by the kernel pppd(8). The userland ppp(8) which is completely independent of the kernel mode ppp uses tun0... interfaces that are dynamically generated as required -- this daemon is what most people use for dial-up purposes. See http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp0.pgp Description: PGP signature
RE: Definition of interfaces in ifconfig
Can I get rid of some of these guys? How? You can get rid of the superfluous interfaces by building yourself a custom kernel with the drivers for those devices commented out. Be sure and check the man pages (eg sl(4), ppp(4), faith(4)) and in LINT (4.x) or NOTES (5.x) to verify you aren't chopping out something useful. Nb. the ppp0 interface can only be generated by the kernel pppd(8). The userland ppp(8) which is completely independent of the kernel mode ppp uses tun0... interfaces that are dynamically generated as required -- this daemon is what most people use for dial-up purposes. OK, I had read the kernel config part of the manual before, but I re-read it to refresh my memory. I'm currently running a custom kernel, with just the cpu specified and maxusers = 0 I edited a new copy of that, took out quite a bit more that I don't need - raid, scsi, wi-fi, pcmcia, etc. I did: # cd /usr/src/sys/i386/conf # /usr/sbin/config CUSTOM1 # cd ../../compile/CUSTOM1 # make clean # make depend # make FAILURE! Last line of output: Umass.o(.text+0x1c13): more undefined references to 'xpt_done' follow *** Error Code 1 Stop in /usr/src/sys/compile/CUSTOM1 Assuming that the error is in my editing of the kernel config file, I have added it below. Any advice would be appreciated! # # CUSTOM1 -- Custom kernel configuration file for FreeBSD/i386 # # For more information on this file, please read the handbook section on # Kernel Configuration Files: # # http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-c onfig.html # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ./LINT configuration file. If you are # in doubt as to the purpose or necessity of a line, check first in LINT. # # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.51.2.2 2003/03/25 23:35:15 jhb Exp $ machine i386 #cpuI386_CPU #cpuI486_CPU #cpuI586_CPU cpu I686_CPU ident CUSTOM1 maxusers0 #makeoptionsDEBUG=-g#Build kernel with gdb(1) debug symbols options MATH_EMULATE#Support for x87 emulation options INET#InterNETworking options INET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options FFS_ROOT#FFS usable as root device [keep this!] options SOFTUPDATES #Enable FFS soft updates support options UFS_DIRHASH #Improve performance on big directories options MFS #Memory Filesystem options MD_ROOT #MD is a potential root device options NFS #Network Filesystem options NFS_ROOT#NFS usable as root device, NFS required options MSDOSFS #MSDOS Filesystem options CD9660 #ISO 9660 Filesystem options CD9660_ROOT #CD-ROM usable as root, CD9660 required options PROCFS #Process filesystem options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options SCSI_DELAY=15000#Delay (in ms) before probing SCSI options UCONSOLE#Allow users to grab the console options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor options KTRACE #ktrace(1) support options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options P1003_1B#Posix P1003_1B real-time extensions options _KPOSIX_PRIORITY_SCHEDULING options ICMP_BANDLIM#Rate limit bad replies options KBD_INSTALL_CDEV# install a CDEV entry in /dev options AHC_REG_PRETTY_PRINT# Print register bitfields in debug # output. Adds ~128k to driver. options AHD_REG_PRETTY_PRINT# Print register bitfields in debug # output. Adds ~215k to driver. # To make an SMP kernel, the next two are needed #optionsSMP # Symmetric MultiProcessor Kernel #optionsAPIC_IO # Symmetric (APIC) I/O # To support HyperThreading, HTT is needed in addition to SMP and APIC_IO #optionsHTT # HyperThreading Technology device isa device eisa device pci # Floppy drives device fdc0at isa? port IO_FD1 irq 6 drq 2 device
Re: Definition of interfaces in ifconfig
On Sat, Aug 16, 2003 at 05:57:18PM -0500 or thereabouts, Charles Howse wrote: I'm currently running a custom kernel, with just the cpu specified and maxusers = 0 I edited a new copy of that, took out quite a bit more that I don't need - raid, scsi, wi-fi, pcmcia, etc. I did: # cd /usr/src/sys/i386/conf # /usr/sbin/config CUSTOM1 # cd ../../compile/CUSTOM1 # make clean # make depend # make FAILURE! Last line of output: Umass.o(.text+0x1c13): more undefined references to 'xpt_done' follow *** Error Code 1 Stop in /usr/src/sys/compile/CUSTOM1 Assuming that the error is in my editing of the kernel config file, I have added it below. Any advice would be appreciated! Look at these comments carefully. ...snip... #device scbus # SCSI bus (required) #device da # Direct Access (disks) ...snip... deviceumass # Disks/Mass storage - Requires scbus and da ^ -- Josh ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Definition of interfaces in ifconfig
Look at these comments carefully. ...snip... #device scbus # SCSI bus (required) #device da # Direct Access (disks) ...snip... device umass # Disks/Mass storage - Requires scbus and da ^ -- Josh Thank you! Haste makes waste! Look before you leap! RTFM! :-) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]