This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Is it impossible to use two IP addresses which are contained in the same class C on DM648?

Hello.

Is it impossible to use two IP addresses which are belonged to the same class C on DM648?

 

I have tried to use two DM648 EMACs separately. I have followed the instruction of http://tiexpressdsp.com/index.php/Using_two_DM648_EMACs_separately.

I want to use IP 192.168.101.6 and 192.168.101.11 on each DM648 emac. In addtion, both IP mask and gateway ip are the same.

So I edited the "client.c" which was supplied from the above link as belows.

--------------------------------------------------------------------------------------------------

char *HostName    = "tidsp";
char *LocalIPAddr = "192.168.101.6";    // Set to "0.0.0.0" for DHCP
char *LocalIPMask = "255.255.255.0";    // Not used when using DHCP
char *LocalIPAddr2 = "192.168.101.11";  // Set to "0.0.0.0" for DHCP

char *GatewayIP   = "192.168.101.1";    // Not used when using DHCP
char *DomainName  = "demo.net";         // Not used when using DHCP
char *DNSServer   = "0.0.0.0";          // Used when set to anything but zero

--------------------------------------------------------------------------------------------------

 

After building, I ran the client project. Messages were shown in the stdout window of CCS 3.3.

According to the message, just only one IP 192.168.101.6 were connected.

The other IP was banned because "00000.538 BindNew: Duplicate bindings ignored "
If so, I cannot use IP addresses on the same class C(192.168.101.xxx)?

--------------------------------------------------------------------------------------------------

TCP/IP Stack Example Client
Using MAC Address: 00-21-ba-3a-15-2e
cpsw_MDIO_Init
SetPhyMode:000021E1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0
cpsw_MDIO_Init
SetPhyMode:000021E1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0
Using MAC Address = 00-21-ba-3a-15-2e
eth0 has been started successfully
Registeration of interface eth0 Successful
Using MAC Address = 00-21-ba-3a-15-2f
eth1 has been started successfully
Registeration of interface eth1 Successful
cpsw_MDIO_FindingState: PhyNum: 1
cpsw_MDIO_FindingState: PhyNum: 0
cpsw_MDIO_PhYReset(1)
Enable Phy to negotiate external connection
NWAY Advertising: FullDuplex-1000 FullDuplex-100 HalfDuplex-100 FullDuplex-10 HalfDuplex-10 
cpsw_MDIO_PhYReset(0)
Enable Phy to negotiate external connection
NWAY Advertising: FullDuplex-1000 FullDuplex-100 HalfDuplex-100 FullDuplex-10 HalfDuplex-10 
Network Added: If-1:192.168.101.6
00000.538 BindNew: Duplicate bindings ignored
Service Status: Telnet   : Enabled  :          : 000
Service Status: HTTP     : Enabled  :          : 000
Negotiated connection: FullDuplex 1000 Mbs
Link Status: 1000Mb/s Full Duplex on PHY 0
Negotiated connection: FullDuplex 1000 Mbs
Link Status: 1000Mb/s Full Duplex on PHY 1