Presentation is loading. Please wait.

Presentation is loading. Please wait.

Jump to first page Setup Ethernet & PPP client on Laptop computer Presented by: Xuewu Cai Jianfang Wang.

Similar presentations


Presentation on theme: "Jump to first page Setup Ethernet & PPP client on Laptop computer Presented by: Xuewu Cai Jianfang Wang."— Presentation transcript:

1 Jump to first page Setup Ethernet & PPP client on Laptop computer Presented by: Xuewu Cai Jianfang Wang

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

3 Jump to first page Contd (purpose) n 4. Choose proper route for 2 interfaces above including default router, local subnet route,etc.loopback interface route.

4 Jump to first page Configureation Steps n Ethernet card, Modem,etc are installed onto laptop computer by PCMCIA controller as PCMCIA card. n PCMCIA card can include ethernet card, modem, memory card, serial card,SCSI&IDE card,etc. n PCMCIA support should be compiled into Linux kernel

5 Jump to first page Contd (Steps) n Put system reserved I/O port, memory into /etc/pcmcia/config.opts, in out project,parameter is : F I/O Range: 3E0-3E1 F Memory Range: D8000-DBFFF n Current release contain drivers for all the devices. All these drives are loaded as modules on linux. n 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. n Ethernet card will run network, modem will run serial,etc

6 Jump to first page Configure Ethernet card n Set network configuration parameter into /etc/pcmcia/network.opts n The details of setting: IP address : 130.85.100.254 Subnet mask: 255.255.255.0

7 Jump to first page 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 Jump to first page Ifconfig output u lo Link encap:Local Loopback inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0 UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1 RX packets:18 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 coll:0 u eth0 Link encap:Ethernet HWaddr 00:E0:98:01:1C:87 inet addr:130.85.100.254 Bcast:130.85.100.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:14 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 coll:0 Interrupt:5 Base address:0x300

9 Jump to first page Configure PPP client n Choose chat as dialup tools n Write a piece of chat script as following: ' ' ATZ OK ATDTtelno CONNECT ' ' username < user account... passwd <user password... PPP 1 Save it as script.dialup n Run pppd, choosing options like pppd connect "chat -f script.dialup" /dev/cua1 115200 -detach modem noipdefault defaultroute

10 Jump to first page Contd (PPP client) n Set proper route for PPP using route command. n What to disconnect PPP connection? Use command like: kill `cat /var/run/ppp0.pid /dev/console

11 Jump to first page Ifconfig output n lo Link encap:Local Loopback inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0 UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1 RX packets:18 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 coll:0 n eth0 Link encap:Ethernet HWaddr 00:E0:98:01:1C:87 inet addr:130.85.100.254 Bcast:130.85.100.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 coll:0 Interrupt:5 Base address:0x300 n ppp0 Link encap:Point-to-Point Protocol inet addr:130.85.97.34 P-t-P:130.85.2.203 Mask:255.255.255.0 UP POINTOPOINT RUNNING MTU:1500 Metric:1 RX packets:24 errors:0 dropped:0 overruns:0 frame:0 TX packets:7 errors:0 dropped:0 overruns:0 carrier:0 coll:0


Download ppt "Jump to first page Setup Ethernet & PPP client on Laptop computer Presented by: Xuewu Cai Jianfang Wang."

Similar presentations


Ads by Google