If it is virtual machine then you can add new network via VMware
and Check for newly added network on server, Like I got "net1"
as shown below:
# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
net0 Ethernet up 1000 full e1000g0
net1 Ethernet unknown 0 unknown e1000g1
#
Now create a new interface using that and check if it is visible
now.
# ipadm create-ip net1
# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
net0 Ethernet up 1000 full e1000g0
net1 Ethernet up 1000 full e1000g1
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
net0: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 2
inet 198.168.1.25 netmask ffffff00 broadcast 198.168.1.255
ether 0:56:58:c2:27:36
net1: flags=100001000842<BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 3
inet 0.0.0.0 netmask 0
ether 0:50:36:55:26:a3
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
net0: flags=120002000840<RUNNING,MULTICAST,IPv6,PHYSRUNNING> mtu 1500 index 2
inet6 ::/0
ether 0:56:58:c2:27:36
net1: flags=120002000840<RUNNING,MULTICAST,IPv6,PHYSRUNNING> mtu 1500 index 3
inet6 ::/0
ether 0:50:36:55:26:a3
# ipadm show-if
IFNAME CLASS STATE ACTIVE OVER
lo0 loopback ok yes --
net0 ip ok yes --
net1 ip down no --
Configure IP to the new network now.
# ipadm create-addr -T static -a local=192.168.2.151/24 net1
net1/v4
# ifconfig net1
net1: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 3
inet 192.168.2.151 netmask ffffff00 broadcast 192.168.2.255
ether 0:50:36:55:26:a3
Add a gateway to the above network.
# route -p add -net 192.168.2.151/24 -gateway 192.168.2.1
# netstat -nr
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 198.168.1.1 UG 5 75260
198.168.1.0 198.168.1.25 U 6 275 net0
192.168.2.0 192.168.2.151 U 3 21 net1
192.168.2.0 192.168.2.1 UG 1 0
127.0.0.1 127.0.0.1 UH 2 1670 lo0
Routing Table: IPv6
Destination/Mask Gateway Flags Ref Use If
--------------------------- --------------------------- ----- --- ------- -----
::1 ::1 UH 2 4 lo0
Now try to ping to the new network. It will work if there is any
firewall need to be allowed you can check with Network Team.