Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


Sample XML File For Ethernet Connections

[Top]


Purpose

A sample configuration file containing the settings for connecting the emulator to the LAN using ethernet is given below. The sample file contains dummy values and it is recommended that you replace them with valid values appropriate to your environment.

[Top]


Sample configuration file

<?xml version="1.0" encoding="UTF-8" ?>
<!--     CommDB settings File

--> 
- <CommDB:Config xmlns="SymbianOS.Generic.Comms-Infras.CommDB" xmlns:CommDB="SymbianOS.Generic.Comms-
Infras.CommDB" xmlns:xlink="http://www.w3.org/1999/xlink"xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:schemaLocation="SymbianOS.Generic.Comms-Infras.CommDB CommDB.xsd">
<InformationTable /> 

-<NetworkTable>
    -<Network operation="add">
        <Name>Intranet</Name>   
        </Network>
    </NetworkTable>
-<IAPTable>
    -<IAP operation="add">
        <Name>Ethernet No Daemon Static IP</Name>
        <IAPService>LANService.Ethernet No Daemon</IAPService>
        <IAPBearer>LANBearer.EKA2 Emulator Ethernet</IAPBearer>
        <IAPNetwork>Network.Intranet</IAPNetwork>
        <IAPNetworkWeighting>0</IAPNetworkWeighting>
        <LocationRef>Location.Office</LocationRef>
    </IAP>
    -<IAP operation="add">
        <Name>Ethernet with Daemon Dynamic IP</Name>
        <IAPService>LANService.Ethernet</IAPService>
        <IAPBearer>LANBearer.EKA2 Emulator Ethernet</IAPBearer>
        <IAPNetwork>Network.Intranet</IAPNetwork>
        <IAPNetworkWeighting>0</IAPNetworkWeighting>
        <LocationRef>Location.Office</LocationRef>
    </IAP>
 </IAPTable>
-<LANServiceTable>
 -<LANService operation="add">
        <Name>Ethernet No Daemon</Name>   
        <IfNetworks>ip</IfNetworks>
        <IpNetMask>255.255.255.0</IpNetMask>
        <IpGateway>aaa.aaa.aaa.aaa</IpGateway>
        <IpAddr>aaa.aaa.aaa.aaa</IpAddr>
        <IpAddrFromServer>FALSE</IpAddrFromServer>
        <IpDNSAddrFromServer>TRUE</IpDNSAddrFromServer>
        <IpNameServer1>aaa.aaa.aaa.aaa</IpNameServer1>
        <IpNameServer2>aaa.aaa.aaa.aaa</IpNameServer2>
    </LANService>                
 -<LANService operation="add">
        <Name>Ethernet</Name>
        <IfNetworks>ip</IfNetworks>
        <IpNetMask>255.255.255.0</IpNetMask>
        <IpGateway>aaa.aaa.aaa.aaa</IpGateway>        
        <IpAddrFromServer>TRUE</IpAddrFromServer>
        <IpDNSAddrFromServer>TRUE</IpDNSAddrFromServer>
        <IpNameServer1>aaa.aaa.aaa.aaa</IpNameServer1>
        <IpNameServer2>aaa.aaa.aaa.aaa</IpNameServer2>
        <ConfigDaemonManagerName>ConfigDaemonManager</ConfigDaemonManagerName>
        <ConfigDaemonName>DhcpServ</ConfigDaemonName>
    </LANService>
</LANServiceTable>                    
 -<LANBearerTable>
    <LANBearer operation="add">
        <Name>EKA1 Target Ethernet</Name>
        <Agent>nullagt.agt</Agent>
        <IfName>ethint</IfName>
        <LDDFilename>ethercard</LDDFilename>
        <LDDName>EtherCard</LDDName>
        <PDDFilename>EtherSmc</PDDFilename>
        <PDDName>EtherCard.Smc</PDDName>
        <PacketDriverName>EtherPkt.drv</PacketDriverName>   
        <LastSocketActivityTimeout>-1</LastSocketActivityTimeout>
        <LastSessionClosedTimeout>-1</LastSessionClosedTimeout>
        <LastSocketClosedTimeout>-1</LastSocketClosedTimeout>
    </LANBearer>
</LANBearerTable>
-<ConnectionPreferencesTable>
    -<ConnectionPreferences operation="add">
        <Name>ConnectionPreferencesTable2</Name>
        <Ranking>1</Ranking>
        <Direction>OUTGOING</Direction>
        <DialogPref>PROMPT</DialogPref>
        <BearerSet>LAN</BearerSet>
        <IAPRef>IAP.Ethernet with Daemon Dynamic IP</IAPRef>
    </ConnectionPreferences>
</ConnectionPreferencesTable>
-<GlobalSettingsTable>
    <GlobalSettings operation="add">
        <Name>GlobalSettingsTable1</Name>
        <DefaultNetwork>Network.Intranet</DefaultNetwork>
    </GlobalSettings>
</GlobalSettingsTable>
-<LocationTable>          
    -<Location operation="add">
        <Name>Office</Name>
        <Mobile>FALSE</Mobile>
        <UsePulseDial>FALSE</UsePulseDial>
        <WaitForDialTone>FALSE</WaitForDialTone>
        <PauseAfterDialout>0</PauseAfterDialout>
        <IntlPrefixCode>00</IntlPrefixCode>
        <NatPrefixCode>0</NatPrefixCode>
        <NatCode>44</NatCode>
        <AreaCode>171</AreaCode>
        <DialOutCode>123</DialOutCode>
        <DisableCallWaitingCode>123</DisableCallWaitingCode>
    </Location>
</LocationTable>

You can use the sample XML file with appropriate changes, and the configuration settings can be stored using CED and CEDDUMP tools.

[Top]


See also

Sample Circuit Switched Data (CSD) Configuration

Sample Packet Switched Data (PSD) Configuration

Sample VPN Configuration