Hi all,
I just installed ESX on a HP DL380 g4, and:
\- if during installation I specify a static IP, I can't access the server neither through the web console, nor through the VI Client.
\- if I specify to use DHCP I can access both the web console and the VI Client, but if then I create another Service Console with the desired IP I can no more access none of the SC (still, I can access via SSH). Funny thing, I can telnet both IPs to port 902 and I get response.
in both cases I get an error like "VMKernel Gateway Error: Unable to get COD default route" on startup
Any idea?
Ask to the network guys how switch ports and network are configured.
They can be tagged or there can be some Firewall Software that blocks some IPs.
The static ip is on the same net as the one released by the DHCP?
My client and both the IPs of the ESX are on the same subnet, so there is no firewall between them, no firewall software on the client too.
They're also on the same (untagged) VLAN on the switch.
Are you sure you specified the right DNS and gateway when manually configuring the IP?
When DHCP is used the DNS and gateway are automatically delivered.
I triple-checked them
Could you post the output of "ifconfig", both from the manual config and from DHCP? It really does sound like an incorrect netmask or something like that...
EDIT: Maybe a stupid question, but you mentioned the static IP you tried using is on the same subnet as the DHCP provided IP. Are you sure you're not simply causing an IP conflict?
DHCP Config:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1065 errors:0 dropped:0 overruns:0 frame:0
TX packets:1065 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:102140 (99.7 Kb) TX bytes:102140 (99.7 Kb)
vmnic0 Link encap:Ethernet HWaddr 00:11:85:BE:9A:93
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:232 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:34578 (33.7 Kb) TX bytes:0 (0.0 b)
Interrupt:185
vmnic1 Link encap:Ethernet HWaddr 00:11:85:BE:9A:92
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:21880 errors:0 dropped:0 overruns:0 frame:0
TX packets:2493 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3940166 (3.7 Mb) TX bytes:885974 (865.2 Kb)
Interrupt:193
vswif1 Link encap:Ethernet HWaddr 00:50:56:41:79:BE
inet addr:192.168.50.180 Bcast:192.168.50.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8923 errors:0 dropped:0 overruns:0 frame:0
TX packets:2028 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1757915 (1.6 Mb) TX bytes:842232 (822.4 Kb)
Static IP Config:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1088 errors:0 dropped:0 overruns:0 frame:0
TX packets:1088 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:104123 (101.6 Kb) TX bytes:104123 (101.6 Kb)
vmnic0 Link encap:Ethernet HWaddr 00:11:85:BE:9A:93
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:904 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:180662 (176.4 Kb) TX bytes:0 (0.0 b)
Interrupt:185
vmnic1 Link encap:Ethernet HWaddr 00:11:85:BE:9A:92
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:23341 errors:0 dropped:0 overruns:0 frame:0
TX packets:3789 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4111083 (3.9 Mb) TX bytes:1030245 (1006.0 Kb)
Interrupt:193
vswif1 Link encap:Ethernet HWaddr 00:50:56:41:79:BE
inet addr:192.168.50.3 Bcast:192.168.50.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9991 errors:0 dropped:0 overruns:0 frame:0
TX packets:3317 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1855040 (1.7 Mb) TX bytes:985761 (962.6 Kb)
of course I checked IP Conflict too
I have a class C subnet, with some IPs assigned by DHCP, while other IPs are static. DHCP pool does not include static IP. say: static IP 192.168.50.1 - 192.168.50.40; DHCP pool 192.168.50.60 - 192.168.50.100
I think default name for sc should be vswif0 and not 1.
When you create two sc port groups in the same subnet (with DHCP) there could be a routing problem.
Sounds like a duplicate IP issue with another device on the network.
Like someone else said, it's weird you have no vswif0, because I think default gateway is routed through vswif0, maybe the error message is because of this.
What does "route" output?
What about "esxcfg-vswif -l"?
Have you tried completely removing the vswif(s) and adding them again, with esxcfg-vswif? (You'll need console access since you'll remove networking more or less), and then rebooting?