Re: dial-up to ethernet

From: Kent West (westk_at_acu.edu)
Date: 12/19/03

  • Next message: Derrick 'dman' Hudson: "Re: Where can I get a certain version of a package?"
    Date: Fri, 19 Dec 2003 09:44:27 -0600
    To: debian-user@lists.debian.org
    
    

    mmissett wrote:

    > /etc/network/interfaces has the following:
    >
    >
    I'd recommend you actually post the file, rather than describing it.

    >first, it says the connection is static, which it
    >isn't, it's DHCP. It says the address is
    >192.168.1.1 (The Mac OS, on which the
    >connection is working fine, says 192.168.1.100
    >[or, sometimes, 101]). netmask is
    >255.255.255.0 (Mac agrees), network is
    >192.168.1.0 (Mac says router address is
    >192.168.1.1); broadcast is 192.168.1.255, and
    >gateway is 192.168.1.2. So, do I need to rewrite
    >this file to make it correspond as much as
    >possible to what the Mac is telling me?
    >Especially about DHCP?
    >
    >
    You'll want one that looks something like this:

    > # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
    >
    > # The loopback interface
    > # automatically added when upgrading
    > auto lo
    > iface lo inet loopback
    >
    > # The first network card - this entry was created during the Debian
    > installation
    > # automatically added when upgrading
    > auto eth0
    > iface eth0 inet static
    > address 150.252.128.51
    > network 150.252.128.0
    > netmask 255.255.248.0
    > broadcast 150.252.135.255
    > gateway 150.252.128.1
    >
    > #iface eth0 inet dhcp

    Notice that my IP is static. If I wanted it to be dhcp, I'd comment out
    the static stanza (all 6 lines) and uncomment the single dhcp line, and
    then restart networking ("/etc/init.d/networking restart", although I've
    had better success with stop/start instead of restart on this networking
    script).

    > "ifconfig" (I guess naturally) gives most of this
    >same info. "route" gives only localnet (which
    >/etc/networks defines as 92.168.1.0),
    > "dmesg" does have a line in it: eth0 warning !
    >Unsupported BCM5400 PHY
    >
    >

    Hmm; I suspect this is just some feature of your network card/chipset,
    and can probably be safely ignored. But then again . . . .

    > DNS is not the problem, it won't reach anybody
    >(except it will ping 192.168.1.1) numerically
    >either.
    > When I try to do "/sbin/route add -net
    >192.168.1.0" I get 'invalid argument". "add
    >default gw..." gives "lookup failure".
    > Something I read says to rewrite the
    >/etc/init.d/network file. Unfortumately, there is no
    >such file.
    >
    >

    This advice is probably for some other distro. Ignore it.

    > Did I cover everything? One (hopefully simple)
    >question I'm still left with is: how do internet
    >apps, from ping to Mozilla, know I'm not using
    >ppp/ttyX any more but eth0 over a network? I'm
    >*not* using ppp, am I? (certainly pppconfig
    >doesn't seem to know what an eth0 is)
    >
    >
    > And, last but not least, what am I doing wrong?
    >
    >
    >
    I suspect your problem is in /etc/network/interfaces, as mentioned
    above. I suspect it's defining a static address (as you imply), which is
    not a correct address for working with your network. Changing it to work
    with dhcp and restarting your network will probably get you on your way.

    >P.S. a new kernel is interesting (and may, of
    >course, even prove to be necessary), but a bit
    >complicated given my boot set up. Needs to be
    >a separate subject, though, I think.
    >
    >
    >
    Yes, it needs to be a separate subject. Thank you for realizing that.
    Keeping threads on one topic helps people searching the archives later
    (as well as keeping current readers from going "Huh?!"

    And you probably don't need to get a new kernel anyway.

    -- 
    Kent
    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Derrick 'dman' Hudson: "Re: Where can I get a certain version of a package?"

    Relevant Pages

    • Re: Preventing DHCP from allocating IPs
      ... Each segment is physically separate with a Linux ... unknown MAC addresses firstly don't get a DHCP ... >> wants access to your network, they will have to come to you to obtain ...
      (Security-Basics)
    • Re: Secure your DHCP
      ... I can only think of allocating via dhcp reservation using network card ... Create an exclusion of your whole DHCP scope (So no IP's are free to be ... assign each mac address an Ip address from what was in your pool. ...
      (microsoft.public.windows.server.sbs)
    • RE: DHCP
      ... Asunto: Re: DHCP ... I am looking for a way to block any PC that plugs into my network ... Windows Server 2008 can do this, but I'm not sure about 2003. ... MAC, this server will send IP address and parameters for configure the ...
      (Security-Basics)
    • RE: Blocked IP address - What is MAC 24:5e:0d:1c:06:b7 ?
      ... Can you elaborate some more about the DHCP question? ... Not sure why your get a different Mac address but on the terminal server you ... Also depends how your DHCP is setup, do you have DHCP on your network? ...
      (microsoft.public.windows.terminal_services)
    • HP Officejet 7310xi All-in-one good news (for a change)
      ... When I installed it on a home ethernet network to both a Mac and ... I had to restart my Mac in order for HP's ... with the scanner) by taking the 7310xi *off* the network and just ... and then ran the new HP Installer. ...
      (comp.sys.mac.printing)