Date: Wed, 1 May 2002 15:07:13 -0400 From: "Joe & Fhe Barbish" <barbish@a1poweruser.com> To: "\"E. J. Cerejo\"" <ecerejo@zapo.net> Cc: "FBSDQ" <questions@FreeBSD.ORG> Subject: RE: How to enable IP Forwarding Message-ID: <LPBBIGIAAKKEOEJOLEGOGEFBCPAA.barbish@a1poweruser.com> In-Reply-To: <1020280302.3cd03deee9aa5@zapo.net>
next in thread | previous in thread | raw e-mail | index | archive | help
So you now know you have to plug the crossover cable into your laptop before booting up the fbsd system it's connected to. I do not see any statements in rc.conf to startup user ppp to enable the tun0 connection to your ISP so I guess you are issuing the ppp command from the command line. That's ok. Now your problem is the you can not connect to the internet through the FBSD gateway. First you have to assign an IP address to your FBSD Nic card. Add this to rc.conf # assign IP address to Nic card ifconfig_fxp0="inet 10.0.10.2" Now you have to manually configure the laptop win system for LAN connection. Win start/settings/control panel/networking/ Use 10.0.10.5 for the ip address of your Win box Post your /etc/ppp/ppp.conf file & /etc/resolv.conf so I can see if you are getting the DNS servers from your ISP. -----Original Message----- From: "E. J. Cerejo" [mailto:ecerejo@zapo.net] Sent: Wednesday, May 01, 2002 3:12 PM To: Joe & Fhe Barbish; FBSDQ Cc: fgleiser@cactus.fi.uba.ar Subject: Re: How to enable IP Forwarding > If you are cabling your FBSD box straight to your laptop with out > going through a hub or switch you can not use a standard cable. > You have to use an crossover cable. It's connected with a crossover cable, I use the same cable under Win2k and works fine, now if I connect my laptop to my computer before I turn these on and then turn them on when the cable is connected I get a somewhat different output when I run 'ifconfig -a' as you can see: fxp0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 ether 00:a0:c9:d9:7b:97 media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 inet 127.0.0.1 netmask 0xff000000 ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552 faith0: flags=8002<BROADCAST,MULTICAST> mtu 1500 tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500 inet6 fe80::2a0:c9ff:fed9:7b97%tun0 prefixlen 64 scopeid 0x6 inet 65.129.45.48 --> 63.152.0.191 netmask 0xffffff00 Opened by PID 186 Now the status says active, another thing I notice in my laptop running win2k is the local connection status icon tells me it's connected at 100 Mbps so I know the card is working. > This may be why your FBSD Nic thinks it's not connected. > This problem has nothing to do with IP forwarding. > Posting more info would help a lot. > Post contents of your /etc/rc.conf and /var/run/dmesg.boot My rc.conf looks like this: # -- sysinstall generated deltas -- # Sun Mar 24 23:15:18 2002 # Created: Sun Mar 24 23:15:18 2002 # 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="ecerejo.dns2go.com" kern_securelevel_enable="NO" moused_enable="NO" moused_type="NO" nfs_reserved_port_only="YES" saver="star" sendmail_enable="YES" sshd_enable="YES" usbd_enable="YES" linux_enable="YES" sshd_enable="YES" gateway_enable="YES" and my dmesg looks like this: Copyright (c) 1992-2002 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.5-STABLE #0: Sat Apr 27 18:03:01 EDT 2002 webdude@ecerejo.dns2go.com:/usr/src/sys/compile/MYKERNEL Timecounter "i8254" frequency 1193182 Hz CPU: Pentium/P55C (233.22-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x543 Stepping = 3 Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX> real memory = 134217728 (131072K bytes) config> di sn0 No such device: sn0 Invalid command or syntax. Type `?' for help. config> di lnc0 No such device: lnc0 Invalid command or syntax. Type `?' for help. config> di ie0 No such device: ie0 Invalid command or syntax. Type `?' for help. config> di fe0 No such device: fe0 Invalid command or syntax. Type `?' for help. config> di ed0 No such device: ed0 Invalid command or syntax. Type `?' for help. config> di cs0 No such device: cs0 Invalid command or syntax. Type `?' for help. config> di bt0 No such device: bt0 Invalid command or syntax. Type `?' for help. config> di aic0 No such device: aic0 Invalid command or syntax. Type `?' for help. config> di aha0 No such device: aha0 Invalid command or syntax. Type `?' for help. config> di adv0 No such device: adv0 Invalid command or syntax. Type `?' for help. config> q avail memory = 127266816 (124284K bytes) Preloaded elf kernel "kernel" at 0xc0351000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc035109c. Intel Pentium detected, installing workaround for F00F bug md0: Malloc disk npx0: <math processor> on motherboard npx0: INT 16 interface pcib0: <Host to PCI bridge> on motherboard pci0: <PCI bus> on pcib0 isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <Intel PIIX4 ATA33 controller> port 0xf000-0xf00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 7.2 irq 11 chip1: <Intel 82371AB Power management controller> port 0x5f00-0x5f0f at device 7.3 on pci0 fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0x6400-0x641f mem 0xe3000000-0xe30fffff,0xe3100000-0xe3100fff irq 9 at device 9.0 on pci0 fxp0: Ethernet address 00:a0:c9:d9:7b:97 inphy0: <i82555 10/100 media interface> on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: <NVidia Riva Vanta TNT2 graphics accelerator> at 10.0 irq 10 orm0: <Option ROMs> at iomem 0xc0000-0xca7ff,0xcc000-0xcc7ff on isa0 fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 vpo0: <Iomega VPI0 Parallel to SCSI interface> on ppbus0 vpo0: NIBBLE mode ppc1: <Parallel port> at port 0x278-0x27f on isa0 ppc1: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus1: IEEE1284 device found /NIBBLE Probing for PnP devices on ppbus1: ppbus1: <EPSON MJ-830C> PRINTER ESCPL2,BDC lpt1: <Printer> on ppbus1 lpt1: Polled port ppi1: <Parallel I/O> on ppbus1 pcm0: <Yamaha OPL-SAx> at port 0x220-0x22f,0x530-0x537,0x388-0x38f,0x330-0x331,0x370-0x371 irq 5 drq 0,1 on isa0 IP packet filtering initialized, divert enabled, rule-based forwarding disabled, default to accept, unlimited logging ad0: 9641MB <IBM-DTTA-371010> [19590/16/63] at ata0-master UDMA33 ad2: 4134MB <QUANTUM BIGFOOT_CY4320A> [8960/15/63] at ata1-master WDMA2 acd0: CDROM <CD-ROM 24X/AKOx> at ata0-slave PIO4 da0 at vpo0 bus 0 target 6 lun 0 da0: <IOMEGA ZIP 100 K.05> Removable Direct Access SCSI-2 device da0: Attempt to query device size failed: NOT READY, Medium not present Mounting root from ufs:/dev/ad0s4a > Another cause is All Nic cards must have it's own unique IRQ. > By this I mean the Nic card can not be sharing an IRQ number at > the PC bios level. Check the PC post summary status display to > verify the Nic card is not sharing it's IRQ with an other device. > If it is, you can some times correct this by making sure the Nic card > is not in the first or last PCI expansion slots. The post summary doesn't show any IRQ sharing but if I boot to win2k and print a summary of the device manager it shows the IRQ (which is IRQ 9) being shared. IRQ 09 - IRQ Holder for PCI Steering IRQ 09 - Intel (R) PRO/100+ Management Adapter Thanks _______________________________ 12MB/WAP/filters/folders/fast ! FREE e-mail http://www.ZAPO.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?LPBBIGIAAKKEOEJOLEGOGEFBCPAA.barbish>