10-27-2008
how to configure network in solaris 10?
Hi..i have installed solaris 10 on vmware. I m not able connect to internet.
pls help in detail. how to solve the problem. During the installation i have put no DHCP. cofigured manually ( Ip 192.168.1.9) default gateway 192.168.1.1 .
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Can anybody help me on how to configure the network in Sun Solaris. This is my first time to touch sun system please help!!!:confused: :confused: (2 Replies)
Discussion started by: jameswong
2 Replies
2. HP-UX
Hi
I'm new about UNIX, but I've to use a HP9000 with HP-UX 10.20 workstation. I'm trying to configure the network, I've configured the file /etc/rc.conf.d/netconf with my IP address and the right gateway, so the HP9000 is on the net, I've tried a ping. But now I've a problem I can't start hte CDE,... (4 Replies)
Discussion started by: gofmass
4 Replies
3. UNIX for Dummies Questions & Answers
I have a Windows laptop and a Sparc desktop. I'm trying to toy around with routing.
If have always on broadband from BT. My router ipaddress is:
192.168.1.1
This router uses DHCP.
My Laptop Ip is as follows:
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :... (2 Replies)
Discussion started by: Kongowea
2 Replies
4. Solaris
i have a router from my isp provider 02. my internet works fine in windows but i am unable to use internet in solaris. when i tried ifconfig command
i was able to see the lo0 which is my laoopback adapter. pls can someone advice. (7 Replies)
Discussion started by: seyiisq
7 Replies
5. Solaris
Dear All,
I am a beginner of Sun Solaris. Now I install Sun Solaris 10 on my machine Brand Dell optiplex 745. When i complete installation I found no Network Card
in my computer by using command ifconfig -a, I found only loopback Adapter.
Could anyone help me to solve this problem?
Cheer,
... (5 Replies)
Discussion started by: veasnabee
5 Replies
6. Solaris
HI,
Is it possible to set up ILOM from the ethernet terminal. I 'm at remote location from server so would like to know if i can configure it remotely
I'm able to access my server via ssh terminal. (3 Replies)
Discussion started by: fugitive
3 Replies
7. Solaris
i need to configure a zone to use different interface (bge2) than global and have connected to completely different network switch & to use its own defaultrouter and hosts file .. is it possible ..if so ..how ?
Thanks (9 Replies)
Discussion started by: skamal4u
9 Replies
8. Solaris
Hi, guys, recently my os changed to solaris 10, and i want to share the printer with another computer whose os is also solaris. Is there anyone could give me a hint to fix this problem.
lpadmin -p hp5200 -v /dev/null -A write -n... (1 Reply)
Discussion started by: papertiger
1 Replies
9. Solaris
Hi,
I have installed Solaris 10 on VMware7, When i used ifconfig -a to check network interface, it has shown lo0 as loopback interface.
Please advise how to configure network interfaces using VMware. (1 Reply)
Discussion started by: ajhal04
1 Replies
10. Solaris
Hi,
I have a Solaris 10 zone which I need to configure on a new network. I have configured the new IP on the zone itself and I can ping the interface from a node on the same network, but not from another network. Basically I need to know how to route the traffic from the zone to it's... (3 Replies)
Discussion started by: sparcman
3 Replies
LEARN ABOUT PHP
socket-context-options
SOCKET-CONTEXT-OPTIONS(3) 1 SOCKET-CONTEXT-OPTIONS(3)
Socket context options - Socket context option listing
Socket context options are available for all wrappers that work over sockets, like tcp, http and ftp.
o $bindto
- Used to specify the IP address (either IPv4 or IPv6) and/or the port number that PHP will use to access the network. The syntax
is ip:port for IPv4 addresses, and [ip]:port for IPv6 addresses. Setting the IP or the port to 0 will let the system choose the IP
and/or port.
Note
As FTP creates two socket connections during normal operation, the port number cannot be specified using this option.
o $backlog
- Used to limit the number of outstanding connections in the socket's listen queue.
Note
This is only applicable to stream_socket_server(3).
+--------+-----------------+
|Version | |
| | |
| | Description |
| | |
+--------+-----------------+
| 5.3.3 | |
| | |
| | Added backlog. |
| | |
| 5.1.0 | |
| | |
| | Added bindto. |
| | |
+--------+-----------------+
Example #1
Basic $bindto usage example
<?php
// connect to the internet using the '192.168.0.100' IP
$opts = array(
'socket' => array(
'bindto' => '192.168.0.100:0',
),
);
// connect to the internet using the '192.168.0.100' IP and port '7000'
$opts = array(
'socket' => array(
'bindto' => '192.168.0.100:7000',
),
);
// connect to the internet using the '2001:db8::1' IPv6 address
// and port '7000'
$opts = array(
'socket' => array(
'bindto' => '[2001:db8::1]:7000',
),
);
// connect to the internet using port '7000'
$opts = array(
'socket' => array(
'bindto' => '0:7000',
),
);
// create the context...
$context = stream_context_create($opts);
// ...and use it to fetch the data
echo file_get_contents('http://www.example.com', false, $context);
?>
PHP Documentation Group SOCKET-CONTEXT-OPTIONS(3)