Return to the Comm Tips
Configuring 2 Ethernet cards for TCP/IP
You have to define just your ethernet card just like this:
a. find the resource names for your ethernet card with wrkhdwrsc *cmn
b. decide not to use *adpt for local adapter address. Use something like the one below:
CRTLINETH LIND(ethlin) RSRCNAME(CMNxx) ONLINE(*YES) + VRYWAIT(*NOWAIT) MAXCTL(40) ADPTADR(020010001000) + EXCHID(*sysgen) ETHSTD(*ALL) LINESPEED(100M) + DUPLEX(*HALF) + SSAP(*sysgen) THRESHOLD(*OFF) GENTSTFRM(*YES) + LINKSPEED(100M) AUTOCRTCTL(*yes) CMNRCYLMT(10 5) + TEXT('Ethernet line')then execute the command cfgtcp.
From the menu select option one (1)add tcp/ip interface(addtcpifc).Here you must have your IP options handy an example follows:
Internet address . . . . . . . . > 10.100.101.10 Line description . . . . . . . . ethlin Name, *LOOPBACK, *VIRTUALIP Subnet mask . . . . . . . . . . 255.255.255.0 Associated local interface . . . *NONE Type of service . . . . . . . . *NORMAL *MINDELAY, *MAXTHRPUT... Maximum transmission unit . . . *LIND 576-16388, *LIND Autostart . . . . . . . . . . . *YES *YES, *NO PVC logical channel identifier 001-FFF + for more valuesTake care that the parameters for the address, subnet mask must be consistent with your network design.
X.25 idle circuit timeout . . . 60 1-600 X.25 maximum virtual circuits . 64 0-64 X.25 DDN interface . . . . . . . *NO *YES, *NO TRLAN bit sequencing . . . . . . *MSB *MSB, *LSB
Repeat the above steps for your second card thus changing the value ADPTADR off crtlineth and Internet address off addtcpifc.
A default route must be defined with option 2 of the menu if you are in a wan.
If you have an external DNS server you must define your interfaces there and also define the DNS to your system with option 12.
A good practice is to define also the interfaces in your local host table with option 10 from the menu.
Then of course you must start the interfaces.
[report a broken link by clicking here]