Setup Ethernet - PowerPoint PPT Presentation

About This Presentation
Title:

Setup Ethernet

Description:

Jump to first page. Setup Ethernet & PPP client on Laptop ... Jump to first page. Project Purpose. 1. ... All these drives are loaded as modules on linux. ... – PowerPoint PPT presentation

Number of Views:121
Avg rating:3.0/5.0
Slides: 12
Provided by: cai115
Category:
Tags: drives | ethernet | jump | setup

less

Transcript and Presenter's Notes

Title: Setup Ethernet


1
Setup Ethernet PPP client on Laptop computer
  • Presented by Xuewu Cai
  • Jianfang Wang

2
Project Purpose
  • 1. Setup PCMCIA controller , let it probe
    correctly PCMCIA card attached on it.
  • 2. Set up Ethernet interface, including assign IP
    address, subnet mask to it.
  • 3. Setup PPP dialup client , write a script
    program using AT command set to dialup. Configure
    pppd to setup PPP interface.

3
Contd (purpose)
  • 4. Choose proper route for 2 interfaces above
    including default router, local subnet route,etc
    .loopback interface route.

4
Configureation Steps
  • Ethernet card, Modem,etc are installed onto
    laptop computer by PCMCIA controller as PCMCIA
    card.
  • PCMCIA card can include ethernet card, modem,
    memory card, serial card,SCSIIDE card,etc.
  • PCMCIA support should be compiled into Linux
    kernel

5
Contd (Steps)
  • Put system reserved I/O port, memory into
    /etc/pcmcia/config.opts, in out project,parameter
    is
  • I/O Range 3E0-3E1
  • Memory Range D8000-DBFFF
  • Current release contain drivers for all the
    devices. All these drives are loaded as modules
    on linux.
  • When system(socket driver) detect the
    availability of pcmcia card in socket slots, it
    will run corresponding shell program under
    /etc/pcmcia to bring up interfaces.
  • Ethernet card will run network, modem will run
    serial,etc

6
Configure Ethernet card
  • Set network configuration parameter into
    /etc/pcmcia/network.opts
  • The details of setting
  • IP address 130.85.100.254
  • Subnet mask 255.255.255.0

7
Contd (Ethernet Card)
  • DNS1 130.85.1.5
  • DNS2 130.85.1.3
  • default router 130.85.100.1
  • local subnet route 130.85.100.0 0.0.0.0

8
Ifconfig output
  • lo        Link encapLocal Loopback          
    inet addr127.0.0.1  Bcast127.255.255.255
    Mask255.0.0.0           UP BROADCAST LOOPBACK
    RUNNING  MTU3584  Metric1           RX
    packets18 errors0 dropped0 overruns0 frame0
              TX packets18 errors0 dropped0
    overruns0 carrier0 coll0
  • eth0      Link encapEthernet  HWaddr
    00E098011C87           inet
    addr130.85.100.254  Bcast130.85.100.255 
    Mask255.255.255.0           UP BROADCAST
    RUNNING MULTICAST  MTU1500  Metric1          
    RX packets14 errors0 dropped0 overruns0
    frame0           TX packets0 errors0
    dropped0 overruns0 carrier0 coll0          
    Interrupt5 Base address0x300

9
Configure PPP client
  • Choose chat as dialup tools
  • Write a piece of chat script as following' '
    ATZ OK ATDTtelno CONNECT ' ' username lt user
    account... passwd ltuser password... PPP 1Save
    it as script.dialup
  • Run pppd, choosing options likepppd connect
    "chat -f script.dialup" /dev/cua1 115200 -detach
    modem noipdefault defaultroute

10
Contd (PPP client)
  • Set proper route for PPP using route command.
  • What to disconnect PPP connection? Use command
    likekill cat /var/run/ppp0.pid /dev/console

11
Ifconfig output
  • lo Link encapLocal Loopback
    inet addr127.0.0.1 Bcast127.255.255.255
    Mask255.0.0.0 UP BROADCAST LOOPBACK
    RUNNING MTU3584 Metric1 RX
    packets18 errors0 dropped0 overruns0 frame0
    TX packets18 errors0 dropped0
    overruns0 carrier0 coll0
  • eth0 Link encapEthernet HWaddr
    00E098011C87 inet
    addr130.85.100.254 Bcast130.85.100.255
    Mask255.255.255.0 UP
    BROADCAST RUNNING MULTICAST MTU1500 Metric1
    RX packets0 errors0 dropped0
    overruns0 frame0 TX packets0
    errors0 dropped0 overruns0 carrier0 coll0
    Interrupt5 Base address0x300
  • ppp0 Link encapPoint-to-Point Protocol
    inet addr130.85.97.34 P-t-P130.85.2.203
    Mask255.255.255.0 UP POINTOPOINT
    RUNNING MTU1500 Metric1 RX
    packets24 errors0 dropped0 overruns0 frame0
    TX packets7 errors0 dropped0
    overruns0 carrier0 coll0
Write a Comment
User Comments (0)
About PowerShow.com