Route/arp help?
To access my dsl modem's line stats page, I have to create an arp entry and a route for it, under linux this was done as: (eth1 connected directly to dsl modem) ifconfig eth1 10.0.0.2 netmask 255.255.255.0 route add 10.0.0.1 dev eth1 arp -s 10.0.0.1 ff(not really f, but the MAC address of the dsl modem, NOT the nic). unfortunately, I cant seem to figure out the commands to get this to work under FreeBSD 5.3 Ifconfig is simple enough (replace eth1 with de0 in my case) Arp seems the same (except it needs colons) But the route command I have no clue. It doesnt seem to follow the same syntax as linux, and I havent figured out the correct syntax yet. Any help? Thanks, Mark ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Route/arp help?
On 4/13/05, Iasen Kostov <[EMAIL PROTECTED]> wrote: > M. Parsons wrote: > > >To access my dsl modem's line stats page, I have to create an arp > >entry and a route for it, under linux this was done as: (eth1 > >connected directly to dsl modem) > > > >ifconfig eth1 10.0.0.2 netmask 255.255.255.0 > >route add 10.0.0.1 dev eth1 > > > > > route add -net 10.0.0.1/32 -iface de0 -cloning > > But 'ifconfig de0 10.0.0.2 netmask 255.255.255.0' (or ifconfig de0 > 10.0.0.2/24) should set a 10.0.0.0/24 route via de0 why would you want > to set it again ? > > >arp -s 10.0.0.1 ff(not really f, but the MAC > >address of the dsl modem, NOT the nic). > > > >unfortunately, I cant seem to figure out the commands to get this to > >work under FreeBSD 5.3 > > > >Ifconfig is simple enough (replace eth1 with de0 in my case) > > > >Arp seems the same (except it needs colons) > > > >But the route command I have no clue. It doesnt seem to follow the > >same syntax as linux, and I havent figured out the correct syntax yet. > > > >Any help? > > > >Thanks, > > > >Mark Honestly I have no clue why its not working, it should be simple, but it isnt.. Here is what the arp cache shows and the routing table (and its ed0, not de0, my mistake in original message). arp: (after doing the arp -s command) modem (10.0.0.1) at 00:0b:23:2a:b0:c4 on ed0 permanent [ethernet] this looks right doesnt it? route: defaultmydslgateway UGS 0 8173 tun0 10/24 link#1 UC 00ed0 modem 00:0b:23:2a:b0:c4 UHLS04ed0 => 10.0.0.1/32link#1 UCS 00ed0 no idea here? 3 for ed0? is that right? note, ed0 is also creating the tun0 device (pppoe), but that was never a problem in linux. Im just confused. :( Its not a big deal, as its only my dsl line stats, but still confused why it aint working For the record, http://www.broadbandreports.com/faq/9693 is the page on how you access the line stats, and the MAC part is required for my modem. Thanks for all the help Mark ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Route/arp help?
On 4/13/05, Iasen Kostov <[EMAIL PROTECTED]> wrote: > M. Parsons wrote: > > > > > > > > >Honestly I have no clue why its not working, it should be simple, but > >it isnt.. Here is what the arp cache shows and the routing table (and > >its ed0, not de0, my mistake in original message). > > > >arp: (after doing the arp -s command) > > > >modem (10.0.0.1) at 00:0b:23:2a:b0:c4 on ed0 permanent [ethernet] > > > > > > > Why do you set mac address static at all ? > > Huh? I dont understand what youre saying. The only command I typed was arp -s 10.0.0.1 00:0b:23:2a:b0:c4 , which creates the arp address I should want. (my modems mac address is 00:0b:etc) The only thing I can possibly seeing as being screwed up, is seeing as I have a default gateway, when I do a "telnet 10.0.0.1" its using my internet gateway instead of the ed0 device. Which is why I thought I needed a route command to force a 10.0.0.1 connection to go through ed0. (linux needed the route command...) Oh well, Ive probably confused you, and myself as well. :-) Mark ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Route/arp help?
On 4/13/05, Steve Watt <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]> you write: > >On 4/13/05, Iasen Kostov <[EMAIL PROTECTED]> wrote: > >> M. Parsons wrote: > >> > > >> >Honestly I have no clue why its not working, it should be simple, but > >> >it isnt.. Here is what the arp cache shows and the routing table (and > >> >its ed0, not de0, my mistake in original message). > >> > > >> >arp: (after doing the arp -s command) > >> > > >> >modem (10.0.0.1) at 00:0b:23:2a:b0:c4 on ed0 permanent [ethernet] > >> > > >> Why do you set mac address static at all ? > > > >Huh? I dont understand what youre saying. > > He's wondering why ARP doesn't just work. > > >The only command I typed was arp -s 10.0.0.1 00:0b:23:2a:b0:c4 , which > >creates the arp address I should want. (my modems mac address is > >00:0b:etc) > > > >The only thing I can possibly seeing as being screwed up, is seeing as > >I have a default gateway, when I do a "telnet 10.0.0.1" its using my > >internet gateway instead of the ed0 device. Which is why I thought I > >needed a route command to force a 10.0.0.1 connection to go through > >ed0. (linux needed the route command...) > > > >Oh well, Ive probably confused you, and myself as well. :-) > > I think you're trying to over-complexify the problem. All > you really need to do is: > > # ifconfig ed0 alias 10.0.0.2/24 > # telnet 10.0.0.1 > > No silly route commands, no forcing of ARP. Just add the IP > address to the interface and do your connect. My guess is > that the same is true in Linux, but I don't know the exact > syntax there. > Because that just doesnt work, like ive mentioned above, I have to force a different MAC address into the ARP table. http://www.dslreports.com/faq/9693 is what im trying to accomplish. su-2.05b# ifconfig ed0 alias 10.0.0.2/24 su-2.05b# telnet 10.0.0.1 Trying 10.0.0.1... ^C su-2.05b# arp -s 10.0.0.1 00:0b:23:2a:b0:c4 su-2.05b# telnet 10.0.0.1 Trying 10.0.0.1... ^C oh well, I thank all you guys for trying to help, its just not working, and Im not going to waste any more of your guys time on it. Great to see helpful people in the mailing list, so Im going to stick around. :-) And for the record, the linux commands are: (and these commands work, as Ive used it for months in this setup): ifconfig eth1 10.0.0.2 netmask 255.255.255.0 route add 10.0.0.1 dev eth1 arp -s 10.0.0.1 000b232ab0c4 Mark ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Route/arp help?
On 4/14/05, Neo-Vortex <[EMAIL PROTECTED]> wrote: > > On Wed, 2005-04-13 at 16:38, M. Parsons wrote: > > > I was under the impression (but would need to check to make sure) that > > all incoming packets are diverted to ng_pppoe when it is hooked into the > > Ethernet interface. > > > > This would explain your problems. > > > > Can you try this without the interface being used for PPPOE? > > I have a single interface for PPPoE using netgraph and it connects to the > modem, and other computers fine > > > > For the record, http://www.broadbandreports.com/faq/9693 is the page > > > on how you access the line stats, and the MAC part is required for my > > > modem. > > The only reason i could think of as to why it is required, is if its ip > address isn't 10.0.0.1 as you think it is and for some strange reason it > accepts ip packets as its own if the ethernet header points to its MAC > address... try setting it to DHCP and see if you get an ip... else look up > the manufacturer for the default ip and try a factory reset > I think things are going overboard here, Im just going to give up. I have tried it with pppoe being down, still couldnt connect to the modem. I was told on another msg board that if I did: ifconfig ed0 10.0.0.2 netmask 255.255.255.0 route add -host 10.0.0.1 -interface ed0 arp -s 10.0.0.1 00:0b:23:2a:b0:c4 would be the equivalent of the 3 linux commands, but alas, those 3 dont work either. Again, thanks to all that have tried, again, its just line stats, so I can live without them. Mark ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
ext2 drives under 5.3 not umounting on reboots
I have a ext2 linux partition mounted under /linux via the fstab line: /dev/ad2s1 /linux ext2fs rw 1 2 It will automount on bootup, but if I do a reboot or shutdown -h now, it doesnt get umounted properly. In fact, if this /linux is mounted, then /, /usr, /var, and /tmp (all seperate ufs slices on another hard drive) also get tainted during a reboot. And on the next startup I get the good ole: WARNING: /usr was not properly dismounted, leaving me to fsck the drives in single mode (which sucks, as the fbsd machine is a headless NAT machine). Running fsck in single mode does fix everything. So whats going on here? reboot aint properly umounting partitions, and fsck doesnt seem to be properly running during bootup if it detects tainted filesystems. Any ideas? Freebsd 5.3 SMP kernel. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ext2 drives under 5.3 not umounting on reboots
c0ldbyte wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, 16 Apr 2005, M. Parsons wrote: I have a ext2 linux partition mounted under /linux via the fstab line: /dev/ad2s1 /linux ext2fs rw 1 2 It will automount on bootup, but if I do a reboot or shutdown -h now, it doesnt get umounted properly. In fact, if this /linux is mounted, then /, /usr, /var, and /tmp (all seperate ufs slices on another hard drive) also get tainted during a reboot. And on the next startup I get the good ole: WARNING: /usr was not properly dismounted, leaving me to fsck the drives in single mode (which sucks, as the fbsd machine is a headless NAT machine). Running fsck in single mode does fix everything. So whats going on here? reboot aint properly umounting partitions, and fsck doesnt seem to be properly running during bootup if it detects tainted filesystems. Any ideas? Freebsd 5.3 SMP kernel. Try this line: /dev/ad2s1 /linux ext2fs rw 0 0 But remember the ext2 code has been buggy for a while and is not allways a good choice to try and do writes on it. Might be a better choice to change rw to ro and to also check that drive/partition for errors with its original fsck to fix any errors if there is any then it will most likely mount properly and umount properly. Best of luck, --c0ldbyte Well, I just said screw it, backed up the files I needed, then converted the whole disk to UFS. Time to wash my hands clean of linux anywas. :-) Still sort of worried that reboot wasnt unmounting the linux drive, but oh well, no more worries now. :) Mark ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"